public class MultiBodySpace extends PhysicsSpace
btMultiBodyDynamicsWorld.PhysicsSpace.BroadphaseType| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger2
message logger for this class
|
AXIS_X, AXIS_Y, AXIS_Z, loggerloggerCloggerN| Constructor and Description |
|---|
MultiBodySpace(Vector3f worldMin,
Vector3f worldMax,
PhysicsSpace.BroadphaseType broadphaseType)
Instantiate a MultiBodySpace with a sequential-impulse solver.
|
MultiBodySpace(Vector3f worldMin,
Vector3f worldMax,
PhysicsSpace.BroadphaseType broadphaseType,
SolverType solverType)
Instantiate a MultiBodySpace with the specified contact-and-constraint
solver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateAll(boolean forceFlag)
Activate all colliders and rigid bodies in this space.
|
void |
add(java.lang.Object object)
Add the specified object to this space.
|
void |
addMultiBody(MultiBody multiBody)
Add the specified MultiBody and all its colliders.
|
boolean |
contains(PhysicsCollisionObject pco)
Test whether the specified collision object is added to this space.
|
int |
countMultiBodies()
Count the multibodies in this space.
|
protected void |
create()
Must be invoked on the designated physics thread.
|
void |
destroy()
Remove all multibodies, collision objects, and physics joints.
|
java.util.Collection<MultiBody> |
getMultiBodyList()
Enumerate multibodies that have been added to this space and not yet
removed.
|
static MultiBodySpace |
getMultiBodySpace()
Access the MultiBodySpace running on this thread.
|
java.util.Collection<PhysicsCollisionObject> |
getPcoList()
Enumerate collision objects that have been added to this space and not
yet removed.
|
boolean |
isEmpty()
Test whether this space is empty.
|
void |
remove(java.lang.Object object)
Remove the specified object from this space.
|
void |
removeMultiBody(MultiBody multiBody)
Remove the specified MultiBody and all its colliders.
|
protected void |
updateSolver()
Replace the existing contact-and-constraint solver with a new one of the
correct type.
|
addCollisionObject, addJoint, addTickListener, contains, countJoints, countManifolds, countRigidBodies, countTickListeners, getAccuracy, getCharacterList, getGravity, getJointList, getJointMap, getPhysicsSpace, getRigidBodyList, getSolverInfo, getSolverType, getVehicleList, getWorldType, initSolverInfo, isCcdWithStaticOnly, isUsingScr, listManifoldIds, maxSubSteps, maxTimeStep, onContactEnded, onContactProcessed, onContactStarted, removeCollisionObject, removeJoint, removeTickListener, setAccuracy, setCcdWithStaticOnly, setGravity, setMaxSubSteps, setMaxTimeStep, update, update, update, useScrcontactTest, countCollisionObjects, countSolvers, getBroadphaseType, getCollisionSpace, getConfiguration, getGhostObjectList, getRayTestFlags, getWorldMax, getWorldMin, hasClosest, hasContact, initThread, isForceUpdateAllAabbs, isUsingDeterministicDispatch, jniEnvId, needsCollision, pairTest, rayTest, rayTest, rayTestDp, rayTestRaw, rayTestRaw, setForceUpdateAllAabbs, setRayTestFlags, sweepTest, useDeterministicDispatchcompareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger2
public MultiBodySpace(Vector3f worldMin, Vector3f worldMax, PhysicsSpace.BroadphaseType broadphaseType)
worldMin - the desired minimum coordinate values (not null,
unaffected, default=(-10k,-10k,-10k))worldMax - the desired maximum coordinate values (not null,
unaffected, default=(10k,10k,10k))broadphaseType - which broadphase accelerator to use (not null)public MultiBodySpace(Vector3f worldMin, Vector3f worldMax, PhysicsSpace.BroadphaseType broadphaseType, SolverType solverType)
worldMin - the desired minimum coordinate value for each axis (not
null, unaffected, default=(-10k,-10k,-10k))worldMax - the desired maximum coordinate value for each axis (not
null, unaffected, default=(10k,10k,10k))broadphaseType - which broadphase accelerator to use (not null)solverType - the desired constraint solver (not null)public void addMultiBody(MultiBody multiBody)
multiBody - (not null)public int countMultiBodies()
public java.util.Collection<MultiBody> getMultiBodyList()
public static MultiBodySpace getMultiBodySpace()
public void removeMultiBody(MultiBody multiBody)
multiBody - (not null)public void activateAll(boolean forceFlag)
activateAll in class PhysicsSpaceforceFlag - true to force activationpublic void add(java.lang.Object object)
add in class PhysicsSpaceobject - the object to add (not null)public boolean contains(PhysicsCollisionObject pco)
contains in class PhysicsSpacepco - the object to test (not null, unaffected)protected void create()
create in class PhysicsSpacepublic void destroy()
destroy in class PhysicsSpacepublic java.util.Collection<PhysicsCollisionObject> getPcoList()
getPcoList in class PhysicsSpacepublic boolean isEmpty()
isEmpty in class PhysicsSpacepublic void remove(java.lang.Object object)
remove in class PhysicsSpaceobject - the object to remove, or nullprotected void updateSolver()
updateSolver in class PhysicsSpace