class SphericalJoint

Inherits: Joint

A spherical joint removes all translational degrees of freedom but allows all rotational degrees of freedom.

Essentially this ensures that the anchor points of the two bodies are always coincident. Bodies are allowed to rotate around the anchor points, and their rotation can be limited by an elliptical cone.

Public

Constructors

SphericalJoint

SphericalJoint(const HSceneObject &parent)

Methods

SetLimit

void SetLimit(const LimitConeRange &limit)

Determines the limit of the joint.

This clamps the rotation inside an eliptical angular cone. You must enable limit flag on the joint in order for this to be recognized.

GetLimit

LimitConeRange GetLimit() const

SetFlag

void SetFlag(SphericalJointFlag flag, bool isEnabled)

Enables or disables a flag that controls the joint's behaviour.

HasFlag

bool HasFlag(SphericalJointFlag flag) const

Checks is the specified flag enabled.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const

Returns an interface you can use to access class' Run Time Type Information.

Internal

Methods

GetImplementation

ISphericalJointImplementation &GetImplementation() const

Returns the low level joint implementation.

Protected

Constructors

SphericalJoint

SphericalJoint()

Methods

CreateImplementation

UPtr<IJointImplementation> CreateImplementation() override

Creates the implementation the joint for use by the component.

Fields

mInformation