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.

Source: transform/castletransform_joints.inc (line 238).

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;

This item has no description. Showing description inherited from TCastleAbstractJoint.GetKraftJoint.

Get physics engine (Kraft) joint instance.

Source: transform/castletransform_joints.inc (line 253).

Protected procedure CreateKraftJoint; override;

This item has no description. Showing description inherited from TCastleAbstractJoint.CreateKraftJoint.

Create physics engine (Kraft) joint and set its specialized properties.

Source: transform/castletransform_joints.inc (line 254).

Protected procedure DeinitializeKraftJoint; override;

This item has no description.

Source: transform/castletransform_joints.inc (line 255).

Protected procedure OnConnectedFree(const Sender: TFreeNotificationObserver); override;

This item has no description.

Source: transform/castletransform_joints.inc (line 257).

Protected procedure SetName(const Value: TComponentName); override;

This item has no description.

Source: transform/castletransform_joints.inc (line 259).

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Source: transform/castletransform_joints.inc (line 261).

Public destructor Destroy; override;

This item has no description.

Source: transform/castletransform_joints.inc (line 262).

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

Source: transform/castletransform_joints.inc (line 264).

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

Source: transform/castletransform_joints.inc (line 265).

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

Source: transform/castletransform_joints.inc (line 266).

Public function PropertySections(const PropertyName: String): TPropertySections; override;

This item has no description. Showing description inherited from TCastleComponent.PropertySections.

Section where to show property in the editor.

Source: transform/castletransform_joints.inc (line 267).

Properties

Public property Anchor: TVector3 read FAnchor write SetAnchor;

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

Source: transform/castletransform_joints.inc (line 270).

Public property ConnectedAnchor: TVector3 read FConnectedAnchor write SetConnectedAnchor;

Second hook point that is located in Connected local coordinates.

Source: transform/castletransform_joints.inc (line 273).

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

Maximum rope length (between Anchor and ConnectedAnchor)

Source: transform/castletransform_joints.inc (line 277).

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.

Source: transform/auto_generated_persistent_vectors/tcastleropejoint_persistent_vectors.inc (line 37).

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.

Source: transform/auto_generated_persistent_vectors/tcastleropejoint_persistent_vectors.inc (line 105).


Generated by PasDoc 0.17.0.snapshot.