From 2d5c59747b96849a2730a2ac764c81a0e9b00425 Mon Sep 17 00:00:00 2001 From: Jad Hamza <2743954+jad-hamza@users.noreply.github.com> Date: Wed, 10 Jan 2024 11:48:09 +0100 Subject: [PATCH] Fix damping constraint index in ConstraintDemo --- examples/Constraints/ConstraintDemo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Constraints/ConstraintDemo.cpp b/examples/Constraints/ConstraintDemo.cpp index 704b9779db..719d06fb8b 100644 --- a/examples/Constraints/ConstraintDemo.cpp +++ b/examples/Constraints/ConstraintDemo.cpp @@ -542,7 +542,7 @@ void AllConstraintDemo::initPhysics() pGen6DOFSpring->setDamping(0, 0.5f); pGen6DOFSpring->enableSpring(5, true); pGen6DOFSpring->setStiffness(5, 39.478f); - pGen6DOFSpring->setDamping(0, 0.3f); + pGen6DOFSpring->setDamping(5, 0.3f); pGen6DOFSpring->setEquilibriumPoint(); } #endif