Class TCastleBoxCollider
Unit
Declaration
type TCastleBoxCollider = class(TCastleCollider)
Description
Collide as a box. 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
- TCastleBoxCollider
Overview
Methods
![]() |
function CreateKraftShape(const APhysics: TKraft; const ARigidBody: TKraftRigidBody): TKraftShape; override; |
![]() |
procedure CalculateSizeCore; override; |
![]() |
procedure UpdateVisualization; override; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
function PropertySections(const PropertyName: String): TPropertySections; override; |
![]() |
procedure InternalDesigningBegin; override; |
![]() |
procedure InternalDesigningEnd; override; |
Properties
![]() |
property Size: TVector3 read FSize write SetSize; |
![]() |
property SizePersistent: TCastleVector3Persistent read FSizePersistent stored StoredWithAutoSize; |
Description
Methods
![]() |
function CreateKraftShape(const APhysics: TKraft; const ARigidBody: TKraftRigidBody): TKraftShape; override; |
![]() |
procedure CalculateSizeCore; override; |
![]() |
procedure UpdateVisualization; override; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
function PropertySections(const PropertyName: String): TPropertySections; override; |
![]() |
procedure InternalDesigningBegin; override; |
![]() |
procedure InternalDesigningEnd; override; |
Properties
![]() |
property Size: TVector3 read FSize write SetSize; |
Box size. Default is (2,2,2) (if not AutoSize), consistent with TCastleBox. |
![]() |
property SizePersistent: TCastleVector3Persistent read FSizePersistent stored StoredWithAutoSize; |
Size that can be visually edited in Castle Game Engine Editor, Lazarus and Delphi. Normal user code does not need to deal with this, instead read or write Size directly. See also
|
Generated by PasDoc 0.16.0.