Deltas of linear and angular velocities applied to rigid bodies now are kept between simulation steps.

Read-only access functions added to btRigidBody to get these values
Several OpenCL functions are implemented for MiniCL
This commit is contained in:
rponom
2010-03-17 19:06:59 +00:00
parent 9de41ddd7a
commit b409abac09
4 changed files with 113 additions and 9 deletions

View File

@@ -328,10 +328,10 @@ void btRigidBody::internalWritebackVelocity(btScalar timeStep)
setWorldTransform(newTransform);
//m_originalBody->setCompanionId(-1);
}
m_deltaLinearVelocity.setZero();
m_deltaAngularVelocity .setZero();
m_pushVelocity.setZero();
m_turnVelocity.setZero();
// m_deltaLinearVelocity.setZero();
// m_deltaAngularVelocity .setZero();
// m_pushVelocity.setZero();
// m_turnVelocity.setZero();
}