JointΒΆ

Inherited: Component

DescriptionΒΆ

The Joint class provides common anchor and connected-body settings for physics joints. The base joint behaves as a point-to-point constraint.

Public MethodsΒΆ

Vector3

anchor () const

bool

autoConfigureConnectedAnchor () const

Vector3

connectedAnchor () const

RigidBody *

connectedBody () const

void

setAnchor (const Vector3 & anchor)

void

setAutoConfigureConnectedAnchor (bool anchor)

void

setConnectedAnchor (const Vector3 & anchor)

void

setConnectedBody (RigidBody * body)

Static MethodsΒΆ

None

Methods DescriptionΒΆ

Vector3 Joint::anchor () const

Returns the anchor position of the joint on its own rigid body.

See also setAnchor().


bool Joint::autoConfigureConnectedAnchor () const

Returns true when the connected anchor is calculated automatically.

See also setAutoConfigureConnectedAnchor().


Vector3 Joint::connectedAnchor () const

Returns the anchor position of the joint on the connected rigid body.

See also setConnectedAnchor().


RigidBody * Joint::connectedBody () const

Returns the rigid body connected to the joint.

See also setConnectedBody().


void Joint::setAnchor (Vector3 & anchor)

Sets the anchor position of the joint on its own rigid body.

See also anchor().


void Joint::setAutoConfigureConnectedAnchor (bool anchor)

Enables or disables automatic configuration of the connected anchor.

See also autoConfigureConnectedAnchor().


void Joint::setConnectedAnchor (Vector3 & anchor)

Sets the anchor position of the joint on the connected rigid body.

See also connectedAnchor().


void Joint::setConnectedBody (RigidBody * body)

Sets the rigid body connected to the joint.

See also connectedBody().