public class MultiBodyCollider extends PhysicsCollisionObject
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger2
message logger for this class
|
COLLISION_GROUP_01, COLLISION_GROUP_02, COLLISION_GROUP_03, COLLISION_GROUP_04, COLLISION_GROUP_05, COLLISION_GROUP_06, COLLISION_GROUP_07, COLLISION_GROUP_08, COLLISION_GROUP_09, COLLISION_GROUP_10, COLLISION_GROUP_11, COLLISION_GROUP_12, COLLISION_GROUP_13, COLLISION_GROUP_14, COLLISION_GROUP_15, COLLISION_GROUP_16, COLLISION_GROUP_NONE, loggerloggerN| Constructor and Description |
|---|
MultiBodyCollider(MultiBody multiBody,
int linkIndex)
Instantiate a collider for the indexed link in the specified MultiBody.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachShape(CollisionShape shape)
Attach the specified collision shape to this collider.
|
MultiBody |
getMultiBody()
Access the MultiBody that contains this collider.
|
int |
linkIndex()
Determine the index of the corresponding MultiBodyLink.
|
float |
mass()
Determine the mass of this collider.
|
void |
setPhysicsLocation(Vector3f location)
Directly alter the location of this collider's center.
|
void |
setPhysicsLocationDp(Vec3d location)
Directly alter the location of this collider's center.
|
void |
setPhysicsRotation(Matrix3f orientation)
Directly alter this collider's orientation.
|
void |
setPhysicsRotationDp(Matrix3d orientation)
Directly alter this collider's orientation.
|
activate, addCollideWithGroup, addToIgnoreList, attachCollisionShape, boundingBox, clearIgnoreList, collisionFlags, copyPcoProperties, countIgnored, finalizeNative, findInstance, getActivationState, getAnisotropicFriction, getCcdMotionThreshold, getCcdSquareMotionThreshold, getCcdSweptSphereRadius, getCollideWithGroups, getCollisionGroup, getCollisionShape, getCollisionSpace, getContactDamping, getContactProcessingThreshold, getContactStiffness, getDeactivationTime, getFriction, getInternalType, getPhysicsLocation, getPhysicsLocationDp, getPhysicsRotation, getPhysicsRotationDp, getPhysicsRotationMatrix, getPhysicsRotationMatrixDp, getRestitution, getRollingFriction, getScale, getSpinningFriction, getTransform, getTransformDp, getUserObject, hasAnisotropicFriction, ignores, initUserPointer, isActive, isContactResponse, isInWorld, isStatic, listIgnoredPcos, proxyGroup, proxyMask, removeCollideWithGroup, removeFromIgnoreList, setActivationState, setAnisotropicFriction, setCcdMotionThreshold, setCcdSweptSphereRadius, setCollideWithGroups, setCollisionFlags, setCollisionGroup, setCollisionShape, setContactDamping, setContactProcessingThreshold, setContactStiffness, setDeactivationTime, setFriction, setIgnoreList, setLocationAndBasis, setRestitution, setRollingFriction, setSpinningFriction, setUserIndex, setUserIndex2, setUserIndex3, setUserObject, spaceId, toString, userIndex, userIndex2, userIndex3compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, unassignNativeObjectpublic static final java.util.logging.Logger logger2
public MultiBodyCollider(MultiBody multiBody, int linkIndex)
multiBody - (not null, alias created)linkIndex - the link index, or -1 for the basepublic void attachShape(CollisionShape shape)
shape - the shape to attach (not null, alias created)public MultiBody getMultiBody()
public int linkIndex()
public float mass()
public void setPhysicsLocation(Vector3f location)
location - the desired location (in physics-space coordinates, not
null, finite, unaffected)public void setPhysicsLocationDp(Vec3d location)
location - the desired location (in physics-space coordinates, not
null, finite, unaffected)public void setPhysicsRotation(Matrix3f orientation)
orientation - the desired orientation (a rotation matrix in
physics-space coordinates, not null, unaffected)public void setPhysicsRotationDp(Matrix3d orientation)
orientation - the desired orientation (a rotation matrix in
physics-space coordinates, not null, unaffected)