Class TCastleRopeJoint

Unit

Declaration

type TCastleRopeJoint = class(TCastleAbstractTwoBodiesJoint)

Description

Rope joint connects two bodies by an invisible rope that prevents the distance between them to grow beyond specfied Distance. Anchor and ConnectedAnchor define the hook points of the rope.

Hierarchy

Overview

Methods

Protected function GetKraftJoint: TKraftConstraintJoint; override;
Protected procedure CreateKraftJoint; override;
Protected procedure DeinitializeKraftJoint; override;
Protected procedure OnConnectedFree(const Sender: TFreeNotificationObserver); 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 ConnectedAnchor: TVector3 read FConnectedAnchor write SetConnectedAnchor;
Published property Distance: Single read FDistance write SetDistance default 0.0;
Published property AnchorPersistent: TCastleVector3Persistent read FAnchorPersistent ;
Published property ConnectedAnchorPersistent: TCastleVector3Persistent read FConnectedAnchorPersistent ;

Description

Methods

Protected function GetKraftJoint: TKraftConstraintJoint; override;
 
Protected procedure CreateKraftJoint; override;
 
Protected procedure DeinitializeKraftJoint; override;
 
Protected procedure OnConnectedFree(const Sender: TFreeNotificationObserver); 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;

First hook point that is located in parent transform local coordinates.

Public property ConnectedAnchor: TVector3 read FConnectedAnchor write SetConnectedAnchor;

Second hook point that is located in Connected local coordinates.

Published property Distance: Single read FDistance write SetDistance default 0.0;

Maximum rope length (between Anchor and ConnectedAnchor)

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
First hook point that is located in parent transform local coordinates.
Published property ConnectedAnchorPersistent: TCastleVector3Persistent read FConnectedAnchorPersistent ;

ConnectedAnchor 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 ConnectedAnchor directly.

See also
ConnectedAnchor
Second hook point that is located in Connected local coordinates.

Generated by PasDoc 0.16.0.