Re: [jit.phys] Newton's Cradle example

Forums > Jitter > [jit.phys] Newton's Cradle example
April 30, 2013 | 9:52 am

Hi Rob,

thank you for your quick reply. I have implemented the hinge-locking-and-unlocking like in the example. While this helps with two spheres, I don’t seem to be able to get good results with more than two spheres…

I implemented it like this:
for every collision:
- get the two colliding spheres
- find out which one had the higher absolute x-direction velocity on impact
- lock that one for a specified amount of time

Thanks again for your feedback,