@NoOffset @Properties(inherit=BulletSoftBody.class) public class btSoftRigidDynamicsWorld extends btDiscreteDynamicsWorld
btCollisionWorld.AllHitsRayResultCallback, btCollisionWorld.ClosestConvexResultCallback, btCollisionWorld.ClosestRayResultCallback, btCollisionWorld.ContactResultCallback, btCollisionWorld.ConvexResultCallback, btCollisionWorld.LocalConvexResult, btCollisionWorld.LocalRayResult, btCollisionWorld.LocalShapeInfo, btCollisionWorld.RayResultCallbackPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
btSoftRigidDynamicsWorld(btDispatcher dispatcher,
btBroadphaseInterface pairCache,
btConstraintSolver constraintSolver,
btCollisionConfiguration collisionConfiguration) |
btSoftRigidDynamicsWorld(btDispatcher dispatcher,
btBroadphaseInterface pairCache,
btConstraintSolver constraintSolver,
btCollisionConfiguration collisionConfiguration,
btSoftBodySolver softBodySolver) |
btSoftRigidDynamicsWorld(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSoftBody(btSoftBody body) |
void |
addSoftBody(btSoftBody body,
int collisionFilterGroup,
int collisionFilterMask) |
void |
debugDrawWorld() |
int |
getDrawFlags() |
btSoftBodyArray |
getSoftBodyArray() |
btSoftBodyWorldInfo |
getWorldInfo() |
int |
getWorldType() |
void |
rayTest(btVector3 rayFromWorld,
btVector3 rayToWorld,
btCollisionWorld.RayResultCallback resultCallback)
rayTest performs a raycast on all objects in the btCollisionWorld, and calls the resultCallback
This allows for several queries: first hit, all hits, any hit, dependent on the value returned by the callback.
|
static void |
rayTestSingle(btTransform rayFromTrans,
btTransform rayToTrans,
btCollisionObject collisionObject,
btCollisionShape collisionShape,
btTransform colObjWorldTransform,
btCollisionWorld.RayResultCallback resultCallback)
rayTestSingle performs a raycast call and calls the resultCallback.
|
void |
removeCollisionObject(btCollisionObject collisionObject)
removeCollisionObject will first check if it is a rigid body, if so call removeRigidBody otherwise call btDiscreteDynamicsWorld::removeCollisionObject
|
void |
removeSoftBody(btSoftBody body) |
void |
serialize(btSerializer serializer)
Preliminary serialization test for Bullet 2.76.
|
void |
setDrawFlags(int f) |
addAction, addCharacter, addCollisionObject, addCollisionObject, addConstraint, addConstraint, addRigidBody, addRigidBody, addVehicle, applyGravity, clearForces, debugDrawConstraint, getApplySpeculativeContactRestitution, getCollisionWorld, getConstraint, getConstraintSolver, getGravity, getLatencyMotionStateInterpolation, getNonStaticRigidBodies, getNumConstraints, getSimulationIslandManager, getSynchronizeAllMotionStates, removeAction, removeCharacter, removeConstraint, removeRigidBody, removeVehicle, setApplySpeculativeContactRestitution, setConstraintSolver, setGravity, setLatencyMotionStateInterpolation, setNumTasks, setSynchronizeAllMotionStates, solveConstraints, stepSimulation, stepSimulation, synchronizeMotionStates, synchronizeSingleMotionState, updateVehiclesgetSolverInfo, getWorldUserInfo, setInternalTickCallback, setInternalTickCallback, setWorldUserInfocomputeOverlappingPairs, contactPairTest, contactTest, convexSweepTest, convexSweepTest, debugDrawObject, getBroadphase, getCollisionObjectArray, getDebugDrawer, getDispatcher, getDispatchInfo, getForceUpdateAllAabbs, getNumCollisionObjects, getPairCache, objectQuerySingle, objectQuerySingleInternal, performDiscreteCollisionDetection, rayTestSingleInternal, refreshBroadphaseProxy, setBroadphase, setDebugDrawer, setForceUpdateAllAabbs, updateAabbs, updateSingleAabbaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic btSoftRigidDynamicsWorld(Pointer p)
Pointer(Pointer).public btSoftRigidDynamicsWorld(btDispatcher dispatcher, btBroadphaseInterface pairCache, btConstraintSolver constraintSolver, btCollisionConfiguration collisionConfiguration, btSoftBodySolver softBodySolver)
public btSoftRigidDynamicsWorld(btDispatcher dispatcher, btBroadphaseInterface pairCache, btConstraintSolver constraintSolver, btCollisionConfiguration collisionConfiguration)
public void debugDrawWorld()
debugDrawWorld in class btDiscreteDynamicsWorldpublic void addSoftBody(btSoftBody body, int collisionFilterGroup, int collisionFilterMask)
public void addSoftBody(btSoftBody body)
public void removeSoftBody(btSoftBody body)
public void removeCollisionObject(btCollisionObject collisionObject)
removeCollisionObject in class btDiscreteDynamicsWorldpublic int getDrawFlags()
public void setDrawFlags(int f)
@ByRef public btSoftBodyWorldInfo getWorldInfo()
@Cast(value="btDynamicsWorldType") public int getWorldType()
getWorldType in class btDiscreteDynamicsWorld@ByRef public btSoftBodyArray getSoftBodyArray()
public void rayTest(@Const @ByRef btVector3 rayFromWorld, @Const @ByRef btVector3 rayToWorld, @ByRef btCollisionWorld.RayResultCallback resultCallback)
btCollisionWorldrayTest in class btCollisionWorldpublic static void rayTestSingle(@Const @ByRef btTransform rayFromTrans, @Const @ByRef btTransform rayToTrans, btCollisionObject collisionObject, @Const btCollisionShape collisionShape, @Const @ByRef btTransform colObjWorldTransform, @ByRef btCollisionWorld.RayResultCallback resultCallback)
public void serialize(btSerializer serializer)
btDiscreteDynamicsWorldserialize in class btDiscreteDynamicsWorldCopyright © 2024. All rights reserved.