16#ifndef BT_DISCRETE_DYNAMICS_WORLD_H
17#define BT_DISCRETE_DYNAMICS_WORLD_H
72 virtual void predictUnconstraintMotion(
btScalar timeStep);
75 virtual void integrateTransforms(
btScalar timeStep);
77 virtual void calculateSimulationIslands();
81 virtual void updateActivationState(
btScalar timeStep);
83 void updateActions(
btScalar timeStep);
85 void startProfiling(
btScalar timeStep);
87 virtual void internalSingleStepSimulation(
btScalar timeStep);
89 void releasePredictiveContacts();
90 void createPredictiveContactsInternal(
btRigidBody * *bodies,
int numBodies,
btScalar timeStep);
91 virtual void createPredictiveContacts(
btScalar timeStep);
93 virtual void saveKinematicState(
btScalar timeStep);
97 void serializeDynamicsWorldInfo(
btSerializer * serializer);
112 virtual void synchronizeMotionStates();
115 void synchronizeSingleMotionState(
btRigidBody * body);
117 virtual void addConstraint(
btTypedConstraint * constraint,
bool disableCollisionsBetweenLinkedBodies =
false);
127 return m_islandManager;
132 return m_islandManager;
140 virtual void setGravity(
const btVector3& gravity);
148 virtual void addRigidBody(
btRigidBody * body,
int group,
int mask);
157 virtual void debugDrawWorld();
163 virtual int getNumConstraints()
const;
175 virtual void clearForces();
178 virtual void applyGravity();
188 updateActions(timeStep);
202 m_synchronizeAllMotionStates = synchronizeAll;
206 return m_synchronizeAllMotionStates;
211 m_applySpeculativeContactRestitution = enable;
216 return m_applySpeculativeContactRestitution;
226 m_latencyMotionStateInterpolation = latencyInterpolation;
230 return m_latencyMotionStateInterpolation;
235 return m_nonStaticRigidBodies;
240 return m_nonStaticRigidBodies;
@ BT_DISCRETE_DYNAMICS_WORLD
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
#define ATTRIBUTE_ALIGNED16(a)
Basic interface to allow actions such as vehicles and characters to be updated inside a btDynamicsWor...
The btBroadphaseInterface class provides an interface to detect aabb-overlapping object pairs.
btCollisionConfiguration allows to configure Bullet collision detection stack allocator size,...
btCollisionObject can be used to manage collision detection objects.
CollisionWorld is interface and container for the collision detection.
btDiscreteDynamicsWorld provides discrete rigid body simulation those classes replace the obsolete Cc...
btAlignedObjectArray< btPersistentManifold * > m_predictiveManifolds
bool getLatencyMotionStateInterpolation() const
bool m_latencyMotionStateInterpolation
void setSynchronizeAllMotionStates(bool synchronizeAll)
void setLatencyMotionStateInterpolation(bool latencyInterpolation)
Interpolate motion state between previous and current transform, instead of current and next transfor...
void setApplySpeculativeContactRestitution(bool enable)
const btSimulationIslandManager * getSimulationIslandManager() const
virtual void setNumTasks(int numTasks)
bool m_applySpeculativeContactRestitution
btAlignedObjectArray< btTypedConstraint * > m_sortedConstraints
virtual btDynamicsWorldType getWorldType() const
BT_DECLARE_ALIGNED_ALLOCATOR()
bool getApplySpeculativeContactRestitution() const
const btAlignedObjectArray< btRigidBody * > & getNonStaticRigidBodies() const
InplaceSolverIslandCallback * m_solverIslandCallback
btAlignedObjectArray< btRigidBody * > & getNonStaticRigidBodies()
bool getSynchronizeAllMotionStates() const
btSimulationIslandManager * m_islandManager
btAlignedObjectArray< btTypedConstraint * > m_constraints
btAlignedObjectArray< btRigidBody * > m_nonStaticRigidBodies
btAlignedObjectArray< btActionInterface * > m_actions
bool m_ownsConstraintSolver
btSimulationIslandManager * getSimulationIslandManager()
btSpinMutex m_predictiveManifoldsMutex
btConstraintSolver * m_constraintSolver
btCollisionWorld * getCollisionWorld()
bool m_synchronizeAllMotionStates
virtual void updateVehicles(btScalar timeStep)
obsolete, use updateActions instead
The btDispatcher interface class can be used in combination with broadphase to dispatch calculations ...
The btDynamicsWorld is the interface class for several dynamics implementation, basic,...
The btIDebugDraw interface class allows hooking up a debug renderer to visually debug simulations.
The btOverlappingPairCache provides an interface for overlapping pair management (add,...
btPersistentManifold is a contact point cache, it stays persistent as long as objects are overlapping...
The btRigidBody is the main class for rigid body objects.
SimulationIslandManager creates and handles simulation islands, using btUnionFind.
btSpinMutex – lightweight spin-mutex implemented with atomic ops, never puts a thread to sleep becaus...
TypedConstraint is the baseclass for Bullet constraints and vehicles.
btVector3 can be used to represent 3D points and vectors.