git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@257 92aac97c-a6ce-11dd-a772-7fcde58d38e6

This commit is contained in:
chappuis.daniel 2010-02-05 14:40:22 +00:00
parent a2d22817f0
commit 6ded70aa7e

View File

@ -47,7 +47,15 @@ void CollisionEngine::update() {
// Compute the collision detection
if (collisionDetection.computeCollisionDetection(collisionWorld)) {
// TODO : Do collision response here
// TODO : Delete this ----------------------------------------------------------
for (std::vector<Constraint*>::const_iterator it = collisionWorld->getConstraintListStartIterator(); it != collisionWorld->getConstraintListEndIterator(); ++it) {
RigidBody* rigidBody1 = dynamic_cast<RigidBody*>((*it)->getBody1());
RigidBody* rigidBody2 = dynamic_cast<RigidBody*>((*it)->getBody2());
rigidBody1->setIsMotionEnabled(false);
rigidBody2->setIsMotionEnabled(false);
}
// -----------------------------------------------------------------------------
}
// For each body in the dynamic world