public class MultiBodyLink extends NativePhysicsObject
btMultibodyLink.| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Modifier and Type | Method and Description |
|---|---|
MultiBodyCollider |
addCollider(CollisionShape shape)
Add a collider for this link.
|
void |
addConstraintForce(Vector3f force)
Add an external force to this link.
|
void |
addConstraintTorque(Vector3f torque)
Add an external torque to this link.
|
void |
addForce(Vector3f force)
Add an external force to this link.
|
void |
addJointTorque(int dofIndex,
float torque)
Add an external torque to this link's joint.
|
void |
addTorque(Vector3f torque)
Add an external torque to this link.
|
Vector3f |
appliedForce(Vector3f storeResult)
Determine the net applied force on this link.
|
Vector3f |
appliedTorque(Vector3f storeResult)
Determine the net applied torque on this link.
|
Vector3f |
axis(Vector3f storeResult)
Determine the direction of the joint's axis for a planar, prismatic, or
revolute joint.
|
Vector3f |
constraintForce(Vector3f storeResult)
Determine the net constraint force on this link.
|
Vector3f |
constraintTorque(Vector3f storeResult)
Determine the net constraint torque on this link.
|
int |
countDofs()
Count the degrees of freedom in the joint.
|
int |
countPositionVariables()
Count the position variables in the joint.
|
MultiBodyCollider |
getCollider()
Access the collider for this link.
|
MultiBody |
getMultiBody()
Access the MultiBody that contains this link.
|
MultiBodyLink |
getParentLink()
Determine the parent of this link.
|
int |
index()
Determine the index of this link in its MultiBody.
|
Vector3f |
inertia(Vector3f storeResult)
Determine the rotational inertia of this link.
|
boolean |
isCollisionWithParent()
Test whether collisions with the immediate parent link are enabled.
|
float |
jointPosition(int dofIndex)
Determine the position of the indexed DOF.
|
float |
jointTorque(int dofIndex)
Determine the torque applied to the indexed DOF using
addJointTorque(int, float), which is zeroed after each
simulation step. |
MultiBodyJointType |
jointType()
Determine the type of joint between this link and its parent.
|
float |
jointVelocity(int dofIndex)
Determine the velocity of the indexed DOF.
|
Vector3f |
location(Vector3f storeResult)
Determine the location of this link's center of mass.
|
float |
mass()
Determine the mass of this link.
|
Quaternion |
orientation(Quaternion storeResult)
Determine the orientation of the link relative to its parent when Q=0.
|
Vector3f |
parent2Link(Vector3f storeResult)
Determine the offset of the link's center relative to its parent's center
for a planar joint.
|
Vector3f |
parent2Pivot(Vector3f storeResult)
Determine the offset from the parent's center to the pivot for a
non-planar joint.
|
Vector3f |
pivot2Link(Vector3f storeResult)
Determine the offset from the pivot to this link's center for a
non-planar joint.
|
void |
setJointPosition(int dofIndex,
float position)
Alter the position of the indexed DOF.
|
void |
setJointVelocity(int dofIndex,
float velocity)
Alter the velocity of the indexed DOF.
|
Transform |
worldTransform(Transform storeResult)
Determine the transform of this link.
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public MultiBodyCollider addCollider(CollisionShape shape)
shape - (not null, alias created)public void addConstraintForce(Vector3f force)
force - the force to add (in physics-space coordinates, not null,
unaffected)public void addConstraintTorque(Vector3f torque)
torque - the torque to add (in physics-space coordinates, not null,
unaffected)public void addForce(Vector3f force)
force - the force to add (in physics-space coordinates, not null,
unaffected)public void addJointTorque(int dofIndex,
float torque)
dofIndex - which degree of freedom (≥0, <numDofs)torque - the torque to addpublic void addTorque(Vector3f torque)
torque - the torque to add (in physics-space coordinates, not null,
unaffected)public Vector3f appliedForce(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f appliedTorque(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f axis(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f constraintForce(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f constraintTorque(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public int countDofs()
public int countPositionVariables()
public MultiBodyCollider getCollider()
public MultiBody getMultiBody()
public MultiBodyLink getParentLink()
public int index()
public Vector3f inertia(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public boolean isCollisionWithParent()
public float jointPosition(int dofIndex)
dofIndex - which degree of freedom (≥0, <numDofs)public float jointTorque(int dofIndex)
addJointTorque(int, float), which is zeroed after each
simulation step.dofIndex - which degree of freedom (≥0, <numDofs)public MultiBodyJointType jointType()
public float jointVelocity(int dofIndex)
dofIndex - which degree of freedom (≥0, <numDofs)public Vector3f location(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public float mass()
public Quaternion orientation(Quaternion storeResult)
storeResult - storage for the result (modified if not null)public Vector3f parent2Link(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f parent2Pivot(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f pivot2Link(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public void setJointPosition(int dofIndex,
float position)
dofIndex - which degree of freedom (≥0, <numDofs)position - the desired positionpublic void setJointVelocity(int dofIndex,
float velocity)
dofIndex - which degree of freedom (≥0, <numDofs)velocity - the desired velocitypublic Transform worldTransform(Transform storeResult)
storeResult - storage for the result (modified if not null)