Class TCastleHingeJoint

Unit

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

Protected function GetKraftJoint: TKraftConstraintJoint; override;
Protected procedure CreateKraftJoint; override;
Protected procedure DeinitializeKraftJoint; override;
Protected procedure SetName(const Value: TComponentName); override;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure WorldBeforeDetach; override;
Public procedure InternalCreateGizmos; override;
Public procedure InternalDestroyGizmos; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property Anchor: TVector3 read FAnchor write SetAnchor;
Public property Axis: TVector3 read FAxis write SetAxis;
Published property AngleLimits: Boolean read FAngleLimits write SetAngleLimits default false;
Published property MinAngle: Single read FMinAngle write SetMinAngle default 0.0;
Published property MaxAngle: Single read FMaxAngle write SetMaxAngle default 0.0;
Published property AnchorPersistent: TCastleVector3Persistent read FAnchorPersistent ;
Published property AxisPersistent: TCastleVector3Persistent read FAxisPersistent ;

Description

Methods

Protected function GetKraftJoint: TKraftConstraintJoint; override;
 
Protected procedure CreateKraftJoint; override;
 
Protected procedure DeinitializeKraftJoint; override;
 
Protected procedure SetName(const Value: TComponentName); override;
 
Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure WorldBeforeDetach; override;
 
Public procedure InternalCreateGizmos; override;
 
Public procedure InternalDestroyGizmos; override;
 
Public function PropertySections(const PropertyName: String): TPropertySections; override;
 

Properties

Public property Anchor: TVector3 read FAnchor write SetAnchor;

Position of the hinge in the parent transformation coordinates.

Public property Axis: TVector3 read FAxis write SetAxis;

Rotation axis around which the Connected rotates. By default +Y.

Published property AngleLimits: Boolean read FAngleLimits write SetAngleLimits default false;

Turns on minimum and maximum rotation angle limit.

Published 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.

Published 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.

Published 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.
Published 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.