Class TCollider
Unit
CastleTransform
Declaration
type TCollider = class(TObject)
Description
Shape used for collision detection of a rigid body TRigidBody.
Hierarchy
Overview
Fields
Methods
Properties
Description
Fields
|
nested const DefaultDensity = 1.0; |
Default for Density.
|
|
nested const DefaultMass = 0.0; |
Default for Mass, zero means "use Density instead".
|
|
nested const DefaultRestitution = 0.0; |
Default for Restitution.
|
|
nested const DefaultFriction = 0.5; |
Default for Friction.
|
Methods
|
destructor Destroy; override; |
|
Properties
|
property Density: Single read FDensity write FDensity
default DefaultDensity; |
Density (per volume) in kg, this implicitly determines mass (volume is automatically calculated by the physics engine). If you instead prefer to explicitly set mass, set Mass property to something non-zero.
|
|
property Mass: Single read FMass write FMass
default DefaultMass; |
Mass in kg. When non-zero, this overrides the automatically calculated mass from the volume and Density.
|
|
property Restitution: Single read FRestitution write FRestitution
default DefaultRestitution; |
|
|
property Friction: Single read FFriction write FFriction
default DefaultFriction; |
|
|
property Translation: TVector3 read FTranslation write FTranslation; experimental; |
Warning: this symbol is experimental.
Local translation applied to the collider shape. Note: These properties may disappear soon from TCollider, and will only be in new (similar but not 100% compatible) TCastleCollider.
|
|
property Rotation: TVector4 read FRotation write FRotation; experimental; |
Warning: this symbol is experimental.
Local rotation applied to the collider shape. Note: These properties may disappear soon from TCollider, and will only be in new (similar but not 100% compatible) TCastleCollider.
|
|
property Scale: TVector3 read FScale write FScale; experimental; |
Warning: this symbol is experimental.
Local scale applied to the collider shape. Note: These properties may disappear soon from TCollider, and will only be in new (similar but not 100% compatible) TCastleCollider.
|
Generated by PasDoc 0.16.0.