Testing a bouncing ball with gravity
by Andy Hawkins · in iTorque 2D · 08/20/2012 (12:26 am) · 3 replies
I'm messing around with some simple tools for the students to use and I'm working on a bouncing ball. I added a script that adds gravity but the ball behaves unusually. It bounces down as expected, then suddenly springs up and gains momentum again. Can someone please check it out to see what's going wrong please.
www.drewfx.com/Torque/TestingBounceGravity.zip
www.drewfx.com/Torque/TestingBounceGravity.zip
#2
09/03/2012 (9:07 am)
You have your restitution values, on the ball and the surface, set to 1.0. That value means there isn't any loss of momentum during a collision, and Torque seems to handle this badly. If you reduce the restitution values, that should help.
#3
09/04/2012 (7:27 am)
Thanks for the help. I'll give it a try.
Associate Andy Hawkins
DrewFX