Class TCastleHingeJoint
Unit
CastleTransform
Declaration
type TCastleHingeJoint = class(TCastleAbstractTwoBodiesJoint)
Description
Hinge joint allows to rotate the transformation around a given axis, like a door attached using hinges to the frame. Anchor determines the rotation point and Axis the axis direction.
Hierarchy
Overview
Methods
Properties
Description
Methods
|
function GetKraftJoint: TKraftConstraintJoint; override; |
This item has no description. Showing description inherited from TCastleAbstractJoint.GetKraftJoint.
Get physics engine (Kraft) joint instance.
|
|
procedure CreateKraftJoint; override; |
This item has no description. Showing description inherited from TCastleAbstractJoint.CreateKraftJoint.
Create physics engine (Kraft) joint and set its specialized properties.
|
|
procedure DeinitializeKraftJoint; override; |
This item has no description. |
|
procedure SetName(const Value: TComponentName); override; |
This item has no description. |
|
constructor Create(AOwner: TComponent); override; |
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; override; |
This item has no description. Showing description inherited from TCastleAbstractJoint.InternalCreateGizmos.
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; override; |
This item has no description. Showing description inherited from TCastleAbstractJoint.InternalDestroyGizmos.
Destroy design-time stuff. You can destroy any component, just be sure to set InternalCastleDesignInvalidate to True .
|
Properties
|
property Anchor: TVector3 read FAnchor write SetAnchor; |
Position of the hinge in the parent transformation coordinates.
|
|
property Axis: TVector3 read FAxis write SetAxis; |
Rotation axis around which the Connected rotates. By default +Y.
|
|
property AngleLimits: Boolean read FAngleLimits write SetAngleLimits default false; |
Turns on minimum and maximum rotation angle limit.
|
|
property MinAngle: Single read FMinAngle write SetMinAngle default 0.0; |
Minimal angle, in radians, must be a value between -2pi + epsilon to 0. Honored only if AngleLimits.
|
|
property MaxAngle: Single read FMaxAngle write SetMaxAngle default 0.0; |
Maximum angle, in radians, must be a value between 0 to 2pi - epsilon. Honored only if AngleLimits.
|
|
property AnchorPersistent: TCastleVector3Persistent read FAnchorPersistent ; |
Anchor 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 Anchor directly.
See also
- Anchor
- Position of the hinge in the parent transformation coordinates.
|
|
property AxisPersistent: TCastleVector3Persistent read FAxisPersistent ; |
Axis 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 Axis directly.
See also
- Axis
- Rotation
axis around which the Connected rotates.
|
Generated by PasDoc 0.16.0-snapshot.