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


Forums > Jitter > [jit.phys] Newton's Cradle example
Apr 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,
Hanna

Attachments:
  1. theworld.js

Subscribe to the Cycling ’74 Weekly Newsletter

Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.

* indicates required