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.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleBehavior
- TCastleCollider
- TCastleCapsuleCollider
Overview
Methods
function CreateKraftShape(const APhysics: TKraft; const ARigidBody: TKraftRigidBody): TKraftShape; override; |
|
procedure CalculateSizeCore; override; |
|
procedure UpdateVisualization; override; |
|
constructor Create(AOwner: TComponent); override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
procedure InternalDesigningBegin; override; |
|
procedure InternalDesigningEnd; override; |
Properties
property Radius: Single read FRadius write SetRadius stored StoredWithAutoSize; |
|
property Height: Single read FHeight write SetHeight stored StoredWithAutoSize; |
Description
Methods
function CreateKraftShape(const APhysics: TKraft; const ARigidBody: TKraftRigidBody): TKraftShape; override; |
|
This item has no description. |
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. |
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. |
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
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. |
procedure InternalDesigningBegin; override; |
|
This item has no description. Showing description inherited from TCastleCollider.InternalDesigningBegin. Create collider visualization. |
procedure InternalDesigningEnd; override; |
|
This item has no description. Showing description inherited from TCastleCollider.InternalDesigningEnd. Destroy collider visualization. |
Properties
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. |
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. |
Generated by PasDoc 0.16.0-snapshot.