POV-Ray : Newsgroups : povray.binaries.animations : orbiting thing (that's a technical term) (384 KB) : Re: orbiting thing (20 of 'em to be specific) (532 KB) Server Time
20 Jul 2024 19:34:55 EDT (-0400)
  Re: orbiting thing (20 of 'em to be specific) (532 KB)  
From: Mark Wagner
Date: 20 Feb 2000 01:32:14
Message: <38af8a6e@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.