diff options
author | rponom <rponom@08e121b0-ae19-0410-a57b-3be3395fd4fd> | 2009-06-02 01:10:43 +0000 |
---|---|---|
committer | rponom <rponom@08e121b0-ae19-0410-a57b-3be3395fd4fd> | 2009-06-02 01:10:43 +0000 |
commit | ee664e7750616bc8baf140f7bb770e42f8ec771b (patch) | |
tree | 7e183a6b208f4597c64e4ae0a6beb8a214a21b88 /Demos | |
parent | d58a14b4cdb8e2f1ac3e1d609b43d993a948dc0d (diff) | |
download | bullet3-ee664e7750616bc8baf140f7bb770e42f8ec771b.tar.gz |
Damping for spring motors added
see btGeneric6DofSpringConstraint::setDamping()
Diffstat (limited to 'Demos')
-rw-r--r-- | Demos/ConstraintDemo/ConstraintDemo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Demos/ConstraintDemo/ConstraintDemo.cpp b/Demos/ConstraintDemo/ConstraintDemo.cpp index 7b298eaa2..e474edfd4 100644 --- a/Demos/ConstraintDemo/ConstraintDemo.cpp +++ b/Demos/ConstraintDemo/ConstraintDemo.cpp @@ -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 |