Class TCastleCapsuleCollider

Unit

Declaration

type TCastleCapsuleCollider = class(TCastleCollider)

Description

Collide as a capsule. Add this collider to TCastleTransform behaviors, along with a TCastleRigidBody, to make the given TCastleTransform be affected by physics and collide with other physics bodies.

Source: transform/castletransform_physics.inc (line 580).

Hierarchy

Overview

Methods

Protected function CreateKraftShape(const APhysics: TKraft; const ARigidBody: TKraftRigidBody): TKraftShape; override;
Protected procedure CalculateSizeCore; override;
Protected procedure UpdateVisualization; override;
Public constructor Create(AOwner: TComponent); override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;
Public procedure InternalDesigningBegin; override;
Public procedure InternalDesigningEnd; override;

Properties

Published property Radius: Single read FRadius write SetRadius stored StoredWithAutoSize;
Published property Height: Single read FHeight write SetHeight stored StoredWithAutoSize;

Description

Methods

Protected function CreateKraftShape(const APhysics: TKraft; const ARigidBody: TKraftRigidBody): TKraftShape; override;

This item has no description.

Source: transform/castletransform_physics.inc (line 595).

Protected procedure CalculateSizeCore; override;

This item has no description. Showing description inherited from TCastleCollider.CalculateSizeCore.

Recalculate collider size. Do not be concerned about AutoSize here, just update collider properties. The default implementation resets Translation and Rotation.

Source: transform/castletransform_physics.inc (line 597).

Protected procedure UpdateVisualization; override;

This item has no description. Showing description inherited from TCastleCollider.UpdateVisualization.

Called when the collider size has changed and needs to be updated.

Source: transform/castletransform_physics.inc (line 598).

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Source: transform/castletransform_physics.inc (line 600).

Public function PropertySections(const PropertyName: String): TPropertySections; override;

This item has no description. Showing description inherited from TCastleComponent.PropertySections.

Section where to show property in the editor.

Source: transform/castletransform_physics.inc (line 601).

Public procedure InternalDesigningBegin; override;

This item has no description. Showing description inherited from TCastleCollider.InternalDesigningBegin.

Create collider visualization.

Source: transform/castletransform_physics.inc (line 603).

Public procedure InternalDesigningEnd; override;

This item has no description. Showing description inherited from TCastleCollider.InternalDesigningEnd.

Destroy collider visualization.

Source: transform/castletransform_physics.inc (line 604).

Properties

Published property Radius: Single read FRadius write SetRadius stored StoredWithAutoSize;

Sphere (at both top and bottom of capsule) radius. Default is 1 (if not AutoSize), consistent with TCastleSphere.

Source: transform/castletransform_physics.inc (line 608).

Published property Height: Single read FHeight write SetHeight stored StoredWithAutoSize;

Sphere (at both top and bottom of capsule) radius. Default is 2 (if not AutoSize), consistent with TCastleCylinder.

Source: transform/castletransform_physics.inc (line 612).


Generated by PasDoc 0.17.0.snapshot.