Jetlag wrote in message <38ab3659@news.povray.org>...
>this is actually a LONG stride from the previous animation... the center
>ball actually belongs in the same array as the rest, treated exactly the
>same. I was going to get rid of it but the other balls kept floating off
>collectively and I couldn't keep the camera on 'em. So I just added one
>with a big radius at the origin, viola: gravity anchor. There seems to be
>some realistic bouncing and collisions, I think I'm getting closer...
I think the problem you are running into with all the balls floating off is
that the balls have a net velocity that is non-zero. The first thing your
code should do on the first frame is figure out the net velocity of the
balls and then modify the velocities of the individual balls so that the net
velocity is zero.
Mark
Post a reply to this message
|