public class RigidBodyMotionState extends NativePhysicsObject
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Constructor and Description |
|---|
RigidBodyMotionState()
Instantiate a motion state.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
getLocation(Vector3f storeResult)
Copy the location to a Vector3f.
|
Vec3d |
getLocationDp(Vec3d storeResult)
Copy the location to a Vector3d.
|
Matrix3f |
getOrientation(Matrix3f storeResult)
Copy the orientation to a Matrix3f.
|
Quaternion |
getOrientation(Quaternion storeResult)
Copy the orientation to a Quaternion.
|
Matrix3d |
getOrientationMatrixDp(Matrix3d storeResult)
Copy the orientation to a Matrix3d.
|
Quatd |
getOrientationQuaternionDp(Quatd storeResult)
Copy the orientation to a Quatd.
|
boolean |
isApplyPhysicsLocal()
Test whether physics-space coordinates should match the spatial's local
coordinates.
|
Transform |
physicsTransform(Transform storeResult)
Calculate the body's physics transform.
|
void |
setApplyPhysicsLocal(boolean applyPhysicsLocal)
Alter whether physics-space coordinates should match the spatial's local
coordinates.
|
void |
setVehicle(PhysicsVehicle vehicle)
Alter which vehicle uses this motion state.
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public Vector3f getLocation(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vec3d getLocationDp(Vec3d storeResult)
storeResult - storage for the result (modified if not null)public Matrix3f getOrientation(Matrix3f storeResult)
storeResult - storage for the result (modified if not null)public Quaternion getOrientation(Quaternion storeResult)
storeResult - storage for the result (modified if not null)public Matrix3d getOrientationMatrixDp(Matrix3d storeResult)
storeResult - storage for the result (modified if not null)public Quatd getOrientationQuaternionDp(Quatd storeResult)
storeResult - storage for the result (modified if not null)public boolean isApplyPhysicsLocal()
public Transform physicsTransform(Transform storeResult)
storeResult - storage for the result (modified if not null)public void setApplyPhysicsLocal(boolean applyPhysicsLocal)
applyPhysicsLocal - true→match local coordinates,
false→match world coordinates (default=false)public void setVehicle(PhysicsVehicle vehicle)
vehicle - the desired vehicle, or null for none (alias created)