git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@257 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
parent
a2d22817f0
commit
6ded70aa7e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user