Class TPhysicsProperties
Unit
Declaration
type TPhysicsProperties = class(TComponent)
Description
Configure physics simulation calculation.
Hierarchy
- TObject
- TPersistent
- TComponent
- TPhysicsProperties
Overview
Fields
nested const DefaultAngularVelocityRK4Integration = false; |
|
nested const DefaultLinearVelocityRK4Integration = false; |
|
nested const DefaultFrequency = 60.0; |
|
nested const DefaultMaxPhysicsTicksPerUpdate = 5; |
|
nested const DefaultGravityStrength = 9.81; |
|
nested const DefaultContinuousCollisionDetection = true; |
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
Properties
property AngularVelocityRK4Integration: Boolean read FAngularVelocityRK4Integration write SetAngularVelocityRK4Integration default DefaultAngularVelocityRK4Integration; |
|
property LinearVelocityRK4Integration: Boolean read FLinearVelocityRK4Integration write SetLinearVelocityRK4Integration default DefaultLinearVelocityRK4Integration; |
|
property Frequency: Single read FFrequency write SetFrequency default DefaultFrequency; |
|
property GravityStrength: Single read FGravityStrength write FGravityStrength default DefaultGravityStrength; |
|
property MaxPhysicsTicksPerUpdate: Cardinal read FMaxPhysicsTicksPerUpdate write FMaxPhysicsTicksPerUpdate default DefaultMaxPhysicsTicksPerUpdate; |
|
property ContinuousCollisionDetection: Boolean read FContinuousCollisionDetection write SetContinuousCollisionDetection default DefaultContinuousCollisionDetection; |
|
property LayerCollisions: TCastleLayerCollisions read FLayerCollisions write FLayerCollisions; |
|
property LayerNames: TCastleLayerNames read FLayerNames write FLayerNames; |
Description
Fields
nested const DefaultAngularVelocityRK4Integration = false; |
|
This item has no description. |
nested const DefaultLinearVelocityRK4Integration = false; |
|
This item has no description. |
nested const DefaultFrequency = 60.0; |
|
This item has no description. |
nested const DefaultMaxPhysicsTicksPerUpdate = 5; |
|
This item has no description. |
nested const DefaultGravityStrength = 9.81; |
|
This item has no description. |
nested const DefaultContinuousCollisionDetection = true; |
|
This item has no description. |
Methods
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
Properties
property AngularVelocityRK4Integration: Boolean read FAngularVelocityRK4Integration write SetAngularVelocityRK4Integration default DefaultAngularVelocityRK4Integration; |
|
Use a more precise (but also more expensive) method for simulating angular velocity. The "RK4" refers to Runge–Kutta method. |
property LinearVelocityRK4Integration: Boolean read FLinearVelocityRK4Integration write SetLinearVelocityRK4Integration default DefaultLinearVelocityRK4Integration; |
|
Use a more precise (but also more expensive) method for simulating linear velocity. The "RK4" refers to Runge–Kutta method. |
property Frequency: Single read FFrequency write SetFrequency default DefaultFrequency; |
|
How often should the physics simulation run in a second. Larger values increase accuracy (up to a certain point), but also increase the CPU overhead. |
property GravityStrength: Single read FGravityStrength write FGravityStrength default DefaultGravityStrength; |
|
Physics gravity is set using the -GravityUp vector (from main camera) multiplied with |
property MaxPhysicsTicksPerUpdate: Cardinal read FMaxPhysicsTicksPerUpdate write FMaxPhysicsTicksPerUpdate default DefaultMaxPhysicsTicksPerUpdate; |
|
Non-zero value avoids the "spiral of death" when the physics takes a long time to calculate. When the value is zero, physics makes always as many steps as necessary, to advance the time by |
property ContinuousCollisionDetection: Boolean read FContinuousCollisionDetection write SetContinuousCollisionDetection default DefaultContinuousCollisionDetection; |
|
Should engine use continous collision detection (CCD). |
property LayerCollisions: TCastleLayerCollisions read FLayerCollisions write FLayerCollisions; |
|
Which layers collide with each other. |
property LayerNames: TCastleLayerNames read FLayerNames write FLayerNames; |
|
Name and a descriptions of layers. |
Generated by PasDoc 0.16.0-snapshot.