@NoOffset @Properties(inherit=BulletDynamics.class) public class btSimpleDynamicsWorld extends btDynamicsWorld
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 |
|---|
btSimpleDynamicsWorld(btDispatcher dispatcher,
btBroadphaseInterface pairCache,
btConstraintSolver constraintSolver,
btCollisionConfiguration collisionConfiguration)
this btSimpleDynamicsWorld constructor creates dispatcher, broadphase pairCache and constraintSolver
|
btSimpleDynamicsWorld(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(btActionInterface action) |
void |
addRigidBody(btRigidBody body) |
void |
addRigidBody(btRigidBody body,
int group,
int mask) |
void |
clearForces() |
void |
debugDrawWorld() |
btConstraintSolver |
getConstraintSolver() |
btVector3 |
getGravity() |
int |
getWorldType() |
void |
removeAction(btActionInterface action) |
void |
removeCollisionObject(btCollisionObject collisionObject)
removeCollisionObject will first check if it is a rigid body, if so call removeRigidBody otherwise call btCollisionWorld::removeCollisionObject
|
void |
removeRigidBody(btRigidBody body) |
void |
setConstraintSolver(btConstraintSolver solver) |
void |
setGravity(btVector3 gravity) |
int |
stepSimulation(double timeStep) |
int |
stepSimulation(double timeStep,
int maxSubSteps,
double fixedTimeStep)
maxSubSteps/fixedTimeStep for interpolation is currently ignored for btSimpleDynamicsWorld, use btDiscreteDynamicsWorld instead
|
void |
synchronizeMotionStates() |
void |
updateAabbs() |
addCharacter, addConstraint, addConstraint, addVehicle, getConstraint, getNumConstraints, getSolverInfo, getWorldUserInfo, removeCharacter, removeConstraint, removeVehicle, setInternalTickCallback, setInternalTickCallback, setWorldUserInfoaddCollisionObject, addCollisionObject, computeOverlappingPairs, contactPairTest, contactTest, convexSweepTest, convexSweepTest, debugDrawObject, getBroadphase, getCollisionObjectArray, getDebugDrawer, getDispatcher, getDispatchInfo, getForceUpdateAllAabbs, getNumCollisionObjects, getPairCache, objectQuerySingle, objectQuerySingleInternal, performDiscreteCollisionDetection, rayTest, rayTestSingle, rayTestSingleInternal, refreshBroadphaseProxy, serialize, setBroadphase, setDebugDrawer, setForceUpdateAllAabbs, 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 btSimpleDynamicsWorld(Pointer p)
Pointer(Pointer).public btSimpleDynamicsWorld(btDispatcher dispatcher, btBroadphaseInterface pairCache, btConstraintSolver constraintSolver, btCollisionConfiguration collisionConfiguration)
public int stepSimulation(@Cast(value="btScalar") double timeStep, int maxSubSteps, @Cast(value="btScalar") double fixedTimeStep)
stepSimulation in class btDynamicsWorldpublic int stepSimulation(@Cast(value="btScalar") double timeStep)
stepSimulation in class btDynamicsWorldpublic void setGravity(@Const @ByRef btVector3 gravity)
setGravity in class btDynamicsWorld@ByVal public btVector3 getGravity()
getGravity in class btDynamicsWorldpublic void addRigidBody(btRigidBody body)
addRigidBody in class btDynamicsWorldpublic void addRigidBody(btRigidBody body, int group, int mask)
addRigidBody in class btDynamicsWorldpublic void removeRigidBody(btRigidBody body)
removeRigidBody in class btDynamicsWorldpublic void debugDrawWorld()
debugDrawWorld in class btDynamicsWorldpublic void addAction(btActionInterface action)
addAction in class btDynamicsWorldpublic void removeAction(btActionInterface action)
removeAction in class btDynamicsWorldpublic void removeCollisionObject(btCollisionObject collisionObject)
removeCollisionObject in class btCollisionWorldpublic void updateAabbs()
updateAabbs in class btCollisionWorldpublic void synchronizeMotionStates()
synchronizeMotionStates in class btDynamicsWorldpublic void setConstraintSolver(btConstraintSolver solver)
setConstraintSolver in class btDynamicsWorldpublic btConstraintSolver getConstraintSolver()
getConstraintSolver in class btDynamicsWorld@Cast(value="btDynamicsWorldType") public int getWorldType()
getWorldType in class btDynamicsWorldpublic void clearForces()
clearForces in class btDynamicsWorldCopyright © 2024. All rights reserved.