Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extern/bullet/BulletDynamics/ConstraintSolver/OdeConstraintSolver.h')
-rw-r--r--extern/bullet/BulletDynamics/ConstraintSolver/OdeConstraintSolver.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/extern/bullet/BulletDynamics/ConstraintSolver/OdeConstraintSolver.h b/extern/bullet/BulletDynamics/ConstraintSolver/OdeConstraintSolver.h
index 7ae8d0eaa49..354a444caa8 100644
--- a/extern/bullet/BulletDynamics/ConstraintSolver/OdeConstraintSolver.h
+++ b/extern/bullet/BulletDynamics/ConstraintSolver/OdeConstraintSolver.h
@@ -13,15 +13,28 @@
#include "ConstraintSolver.h"
+class RigidBody;
+class BU_Joint;
+/// OdeConstraintSolver is one of the available solvers for Bullet dynamics framework
+/// It uses the the unmodified version of quickstep solver from the open dynamics project
class OdeConstraintSolver : public ConstraintSolver
{
-
+private:
+
+ int m_CurBody;
+ int m_CurJoint;
+
+
+ int ConvertBody(RigidBody* body,RigidBody** bodies,int& numBodies);
+ void ConvertConstraint(PersistentManifold* manifold,BU_Joint** joints,int& numJoints,
+ RigidBody** bodies,int _bodyId0,int _bodyId1,IDebugDraw* debugDrawer);
+
public:
virtual ~OdeConstraintSolver() {}
- virtual float SolveGroup(PersistentManifold** manifold,int numManifolds,const ContactSolverInfo& info);
+ virtual float SolveGroup(PersistentManifold** manifold,int numManifolds,const ContactSolverInfo& info,IDebugDraw* debugDrawer = 0);
};