POV-Ray : Newsgroups : povray.advanced-users : Collision detection : Re: Collision detection Server Time
29 Jul 2024 04:25:48 EDT (-0400)
  Re: Collision detection  
From: Slime
Date: 5 Dec 2002 19:11:21
Message: <3defeb29$1@news.povray.org>
> For those who have written particle systems: I'm using trace() and a large
> number of collisions are missed.  How can I ensure that collisions are
> detected?

Welcome to hell.

If you're having multiple particles moving at the same time, you can't rely
on trace to see if they intersect; that only works when only one of them is
moving. You have to analytically solve for the time at which the distance
between the centers of two particles is equal to the sum of their radii.

Then, if you want it to work for more than two particles, you have to make
sure that after a collision is handled, you recheck the particles that
bounced...

It gets pretty messy.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

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