Damping for spring motors added

see btGeneric6DofSpringConstraint::setDamping()
This commit is contained in:
rponom
2009-06-02 01:10:43 +00:00
parent d58a14b4cd
commit ee664e7750
6 changed files with 21 additions and 3 deletions

View File

@@ -383,8 +383,10 @@ void ConstraintDemo::initPhysics()
pGen6DOFSpring->enableSpring(0, true);
pGen6DOFSpring->setStiffness(0, 39.478f);
pGen6DOFSpring->setDamping(0, 0.5f);
pGen6DOFSpring->enableSpring(5, true);
pGen6DOFSpring->setStiffness(5, 39.478f);
pGen6DOFSpring->setDamping(0, 0.3f);
pGen6DOFSpring->setEquilibriumPoint();
}
#endif