Class TCastleAbstractJoint
Unit
CastleTransform
Declaration
type TCastleAbstractJoint = class(TCastleBehavior)
Description
Base class for physics joints, that connects two physics bodies and constraints their relative movement.
This class provides useful virtual methods to create joints (observing the existence of rigid body and parent) and some common properties to all joints (allowing all joints to be breakable).
Hierarchy
Overview
Fields
Methods
Properties
Description
Fields
|
FParentRigidBody: TCastleRigidBody; |
When joint is added to world we need to find parent rigid body and set callbacks for its initialize/deinitialize events. If this pointer is not nil that means that we've done that.
|
|
FBreakThresholdForce: Single; |
This item has no description. |
|
FBreakThresholdTorque: Single; |
This item has no description. |
|
FBreakable: Boolean; |
This item has no description. |
Methods
|
procedure CreateKraftJoint; virtual; abstract; |
Create physics engine (Kraft) joint and set its specialized properties.
|
|
function GetKraftJoint: TKraftConstraintJoint; virtual; abstract; |
Get physics engine (Kraft) joint instance.
|
|
procedure RecreateKraftJoint; |
This item has no description. |
|
procedure InitializeKraftJoint; virtual; |
This item has no description. |
|
procedure DeinitializeKraftJoint; virtual; abstract; |
This item has no description. |
|
function AllNeededKraftObjectsInitialized: Boolean; virtual; |
Can we create joint object.
|
|
procedure OnParentTransformAddBehavior(const Component: TComponent); virtual; |
Event callback when TCastleRigidBody is added to the parent transform.
|
|
procedure OnBeforeParentTransfromRemoveBehavior(const Component: TComponent); virtual; |
Event callback when TCastleRigidBody is removed from the parent transform.
|
|
procedure OnParentRigidBodyInitialized(const Component: TComponent); virtual; |
Event callback when TCastleRigidBody behavior is initialized.
|
|
procedure OnBeforeParentRigidBodyDeinitialized(const Component: TComponent); virtual; |
Event callback when TCastleRigidBody behavior is deinitialized.
|
|
procedure SetParentRigidBodyEvents; |
Sets TCastleRigidBody behavior initialize/deinitialize callbacks.
|
|
procedure RemoveParentRigidBodyEvents; |
Removes TCastleRigidBody behavior initialize/deinitialize callbacks.
|
|
procedure UpdateBreakThresholdForceInKraft; |
This item has no description. |
|
procedure UpdateBreakThresholdTorqueInKraft; |
This item has no description. |
|
procedure UpdateBreakableInKraft; |
This item has no description. |
|
procedure SetBreakThresholdForce(const AValue: Single); |
This item has no description. |
|
procedure SetBreakThresholdTorque(const AValue: Single); |
This item has no description. |
|
procedure SetBreakable(const AValue: Boolean); |
This item has no description. |
|
destructor Destroy; override; |
This item has no description. |
|
procedure WorldBeforeDetach; override; |
This item has no description. Showing description inherited from TCastleBehavior.WorldBeforeDetach.
Called before Parent stops being part of World. Called only if ListenWorldChange is True .
This is also called at the destruction of behavior (more precisely from BeforeDestruction now). Even in this case, we guarantee that Parent is still valid during this call, and not in half-destroyed state. Before the actual destructor of TCastleBehavior we do BeforeParentDetach and BeforeWorldDetach and set Parent to Nil .
|
|
procedure InternalCreateGizmos; virtual; |
Create design-time transformations that are displayed in the hierarchy to visualize physics joints 3D points. If you want to visualize the behavior using a visible TCastleTransform, then create and add to Parent a descendant of TCastleJointTool, and set InternalCastleDesignInvalidate to True .
|
|
procedure InternalDestroyGizmos; virtual; |
Destroy design-time stuff. You can destroy any component, just be sure to set InternalCastleDesignInvalidate to True .
|
Properties
Generated by PasDoc 0.16.0-snapshot.