Damping for spring motors added
see btGeneric6DofSpringConstraint::setDamping()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user