Bullet Collision Detection & Physics Library
btMultiBodyDynamicsWorld.h
Go to the documentation of this file.
1 /*
2 Bullet Continuous Collision Detection and Physics Library
3 Copyright (c) 2013 Erwin Coumans http://bulletphysics.org
4 
5 This software is provided 'as-is', without any express or implied warranty.
6 In no event will the authors be held liable for any damages arising from the use of this software.
7 Permission is granted to anyone to use this software for any purpose,
8 including commercial applications, and to alter it and redistribute it freely,
9 subject to the following restrictions:
10 
11 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
12 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13 3. This notice may not be removed or altered from any source distribution.
14 */
15 
16 #ifndef BT_MULTIBODY_DYNAMICS_WORLD_H
17 #define BT_MULTIBODY_DYNAMICS_WORLD_H
18 
20 
21 
22 class btMultiBody;
26 
30 {
31 protected:
37 
38  virtual void calculateSimulationIslands();
39  virtual void updateActivationState(btScalar timeStep);
40  virtual void solveConstraints(btContactSolverInfo& solverInfo);
41  virtual void integrateTransforms(btScalar timeStep);
42 public:
43 
44  btMultiBodyDynamicsWorld(btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btMultiBodyConstraintSolver* constraintSolver,btCollisionConfiguration* collisionConfiguration);
45 
46  virtual ~btMultiBodyDynamicsWorld ();
47 
48  virtual void addMultiBody(btMultiBody* body, short group= btBroadphaseProxy::DefaultFilter, short mask=btBroadphaseProxy::AllFilter);
49 
50  virtual void removeMultiBody(btMultiBody* body);
51 
52  virtual void addMultiBodyConstraint( btMultiBodyConstraint* constraint);
53 
54  virtual void removeMultiBodyConstraint( btMultiBodyConstraint* constraint);
55 };
56 #endif //BT_MULTIBODY_DYNAMICS_WORLD_H
virtual void updateActivationState(btScalar timeStep)
btDiscreteDynamicsWorld provides discrete rigid body simulation those classes replace the obsolete Cc...
btCollisionConfiguration allows to configure Bullet collision detection stack allocator size...
virtual void integrateTransforms(btScalar timeStep)
btMultiBodyConstraintSolver * m_multiBodyConstraintSolver
MultiBodyInplaceSolverIslandCallback * m_solverMultiBodyIslandCallback
virtual void removeMultiBodyConstraint(btMultiBodyConstraint *constraint)
The btBroadphaseInterface class provides an interface to detect aabb-overlapping object pairs...
virtual void solveConstraints(btContactSolverInfo &solverInfo)
btAlignedObjectArray< btMultiBody * > m_multiBodies
btAlignedObjectArray< btMultiBodyConstraint * > m_multiBodyConstraints
btMultiBodyDynamicsWorld(btDispatcher *dispatcher, btBroadphaseInterface *pairCache, btMultiBodyConstraintSolver *constraintSolver, btCollisionConfiguration *collisionConfiguration)
btAlignedObjectArray< btMultiBodyConstraint * > m_sortedMultiBodyConstraints
virtual void addMultiBody(btMultiBody *body, short group=btBroadphaseProxy::DefaultFilter, short mask=btBroadphaseProxy::AllFilter)
virtual void removeMultiBody(btMultiBody *body)
virtual void addMultiBodyConstraint(btMultiBodyConstraint *constraint)
The btDispatcher interface class can be used in combination with broadphase to dispatch calculations ...
Definition: btDispatcher.h:69
The btMultiBodyDynamicsWorld adds Featherstone multi body dynamics to Bullet This implementation is s...
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
Definition: btScalar.h:266