wrapped up first version of the FractureDemo

move 'split impulse' / position solver before velocity solver, so that applied impulse is available for fracture
add btSliderConstraint::getAngularPos see http://code.google.com/p/bullet/issues/detail?id=489
This commit is contained in:
erwin.coumans
2011-03-18 00:20:52 +00:00
parent 74a65a6207
commit f17fa297d5
6 changed files with 172 additions and 149 deletions

View File

@@ -17,11 +17,7 @@ class btFractureDynamicsWorld : public btDiscreteDynamicsWorld
bool m_fracturingMode;
void glueCallback(btScalar timeStep);
void fractureCallback( btScalar timeStep);
void addNewBody(const btTransform& oldTransform,btScalar* masses, btCompoundShape* oldCompound);
btFractureBody* addNewBody(const btTransform& oldTransform,btScalar* masses, btCompoundShape* oldCompound);
void breakDisconnectedParts( btFractureBody* fracObj);
@@ -42,6 +38,13 @@ public:
}
bool getFractureMode() const { return m_fracturingMode;}
///normally those callbacks are called internally by the 'solveConstraints'
void glueCallback();
///normally those callbacks are called internally by the 'solveConstraints'
void fractureCallback();
};
#endif //_BT_FRACTURE_DYNAMICS_WORLD_H