public class DeformableSpace extends MultiBodySpace
btDeformableMultiBodyDynamicsWorld.PhysicsSpace.BroadphaseType| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger3
message logger for this class
|
logger2AXIS_X, AXIS_Y, AXIS_Z, loggerloggerCloggerN| Constructor and Description |
|---|
DeformableSpace(Vector3f worldMin,
Vector3f worldMax,
PhysicsSpace.BroadphaseType broadphaseType,
SolverType solverType)
Instantiate a DeformableSpace with the specified contact-and-constraint
solver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCollisionObject(PhysicsCollisionObject pco)
Add the specified collision object to this space.
|
boolean |
contains(PhysicsCollisionObject pco)
Test whether the specified collision object is added to this space.
|
int |
countJoints()
Count the joints in this space, including anchors and soft-body joints.
|
int |
countSoftBodies()
Count the soft bodies in this space.
|
protected void |
create()
Must be invoked on the designated physics thread.
|
void |
destroy()
Remove all collision objects and physics joints.
|
static DeformableSpace |
getDeformableSpace()
Access the DeformableSpace running on this thread.
|
java.util.Collection<PhysicsCollisionObject> |
getPcoList()
Enumerate collision objects that have been added to this space and not
yet removed.
|
java.util.Collection<PhysicsSoftBody> |
getSoftBodyList()
Enumerate soft bodies that have been added to this space and not yet
removed.
|
SoftBodyWorldInfo |
getWorldInfo()
Access the parameters applied when soft bodies are added to this space.
|
boolean |
isEmpty()
Test whether this space is empty.
|
void |
removeCollisionObject(PhysicsCollisionObject pco)
Remove the specified collision object from this space.
|
void |
setGravity(Vector3f gravity)
Alter the gravitational acceleration acting on newly-added bodies.
|
activateAll, add, addMultiBody, countMultiBodies, getMultiBodyList, getMultiBodySpace, remove, removeMultiBody, updateSolveraddJoint, addTickListener, contains, countManifolds, countRigidBodies, countTickListeners, getAccuracy, getCharacterList, getGravity, getJointList, getJointMap, getPhysicsSpace, getRigidBodyList, getSolverInfo, getSolverType, getVehicleList, getWorldType, initSolverInfo, isCcdWithStaticOnly, isUsingScr, listManifoldIds, maxSubSteps, maxTimeStep, onContactEnded, onContactProcessed, onContactStarted, removeJoint, removeTickListener, setAccuracy, setCcdWithStaticOnly, 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 logger3
public DeformableSpace(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 int countSoftBodies()
public static DeformableSpace getDeformableSpace()
public java.util.Collection<PhysicsSoftBody> getSoftBodyList()
public SoftBodyWorldInfo getWorldInfo()
public void addCollisionObject(PhysicsCollisionObject pco)
addCollisionObject in class PhysicsSpacepco - the collision object to add (not null)public boolean contains(PhysicsCollisionObject pco)
contains in class MultiBodySpacepco - the object to test (not null, unaffected)public int countJoints()
countJoints in class PhysicsSpaceprotected void create()
create in class MultiBodySpacepublic void destroy()
destroy in class MultiBodySpacepublic java.util.Collection<PhysicsCollisionObject> getPcoList()
getPcoList in class MultiBodySpacepublic boolean isEmpty()
isEmpty in class MultiBodySpacepublic void removeCollisionObject(PhysicsCollisionObject pco)
removeCollisionObject in class PhysicsSpacepco - the collision object to remove (not null)public void setGravity(Vector3f gravity)
Typically, when a body is added to a space, the body's gravity gets set to that of the space. Thus, it is preferable to set the space's gravity before adding any bodies to the space.
setGravity in class PhysicsSpacegravity - the desired acceleration vector (not null, unaffected,
default=(0,-9.81,0))