public class PhysicsSoftSpace extends PhysicsSpace
btSoftRigidDynamicsWorld.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 |
|---|
PhysicsSoftSpace(PhysicsSpace.BroadphaseType broadphaseType)
Instantiate a PhysicsSoftSpace with a sequential-impulse solver.
|
PhysicsSoftSpace(Vector3f worldMin,
Vector3f worldMax,
PhysicsSpace.BroadphaseType broadphaseType)
Instantiate a PhysicsSoftSpace with a sequential-impulse solver.
|
PhysicsSoftSpace(Vector3f worldMin,
Vector3f worldMax,
PhysicsSpace.BroadphaseType broadphaseType,
CollisionConfiguration configuration)
Instantiate a PhysicsSoftSpace with a sequential-impulse 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.
|
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.
|
static PhysicsSoftSpace |
getSoftSpace()
Access the PhysicsSoftSpace running on this thread.
|
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, addJoint, 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, remove, removeJoint, removeTickListener, setAccuracy, setCcdWithStaticOnly, setMaxSubSteps, setMaxTimeStep, update, update, update, updateSolver, 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 PhysicsSoftSpace(PhysicsSpace.BroadphaseType broadphaseType)
broadphaseType - which broadphase accelerator to use (not null)public PhysicsSoftSpace(Vector3f worldMin, Vector3f worldMax, PhysicsSpace.BroadphaseType broadphaseType)
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)public PhysicsSoftSpace(Vector3f worldMin, Vector3f worldMax, PhysicsSpace.BroadphaseType broadphaseType, CollisionConfiguration configuration)
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)configuration - the desired configuration (not null)public int countSoftBodies()
public java.util.Collection<PhysicsSoftBody> getSoftBodyList()
public static PhysicsSoftSpace getSoftSpace()
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 PhysicsSpacepco - the object to test (not null, unaffected)public int countJoints()
countJoints in class PhysicsSpaceprotected 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 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))