|
|
| ~Joint3D () override |
| | Destructor.
|
|
void | onEnter () override |
| | Called when the component enters the active scene graph.
|
|
void | onExit () override |
| | Called when the component exits the active scene graph.
|
|
bool | isAttached () const |
| | Returns whether the native physics constraint has been created and attached.
|
|
PhysicsWorld3D * | getWorld () const |
| | Returns the physics world that currently owns the joint, or nullptr when detached.
|
|
Rigidbody3D * | getAttachedBody () const |
| | Returns the rigid body on the same node as this component.
|
|
Rigidbody3D * | getConnectedBody () const |
| | Returns the other rigid body connected by this joint.
|
| void | setConnectedBody (Rigidbody3D *body) |
| | Assigns the rigid body connected on the far side of the joint.
|
|
CoordinateSpace | getCoordinateSpace () const |
| | Returns the coordinate space used by anchor and axis values.
|
| void | setCoordinateSpace (CoordinateSpace space) |
| | Sets the coordinate space used by anchors and axes.
|
| void | setAnchorsInWorldSpace (const Vec3 &anchor) |
| | Sets both anchors to the same world-space position.
|
| void | setAnchors (const Vec3 &anchor, const Vec3 &connectedAnchor) |
| | Sets the joint anchors for both rigid bodies.
|
|
const Vec3 & | getAnchor () const |
| | Returns the anchor on the attached body.
|
| virtual void | setAnchor (const Vec3 &anchor) |
| | Sets the anchor on the attached body.
|
|
const Vec3 & | getConnectedAnchor () const |
| | Returns the anchor on the connected body.
|
| virtual void | setConnectedAnchor (const Vec3 &anchor) |
| | Sets the anchor on the connected body.
|
| void | setAxesInWorldSpace (const Vec3 &axis) |
| | Sets both axes to the same world-space position.
|
| void | setAxes (const Vec3 &axis, const Vec3 &connectedAxis) |
| | Sets the joint axes for both rigid bodies.
|
|
const Vec3 & | getAxis () const |
| | Returns the attached body's joint axis.
|
| void | setAxis (const Vec3 &axis) |
| | Sets the attached body's joint axis.
|
|
const Vec3 & | getConnectedAxis () const |
| | Returns the secondary body's joint axis.
|
| virtual void | setConnectedAxis (const Vec3 &axis) |
| | Sets the connected body's joint axis.
|
|
JPH::Constraint * | internalHandle () const |
| | Returns the underlying native constraint pointer.
|
| void | setUserData (void *userData) |
| | Stores opaque user data on the joint component.
|
|
void * | getUserData () const |
| | Returns the opaque user data pointer assigned to this joint.
|
Base class for 3D joints.
Joint connects the Rigidbody3D on the same node (bodyA) to another Rigidbody3D (bodyB).