POV-Ray : Newsgroups : povray.general : Collison Detecion in Povray? : Re: Collison Detecion in Povray? Server Time
9 Aug 2024 11:21:27 EDT (-0400)
  Re: Collison Detecion in Povray?  
From: Warp
Date: 5 Sep 2000 10:19:23
Message: <39b500eb@news.povray.org>
Josh English <eng### [at] spiritonecom> wrote:
: If you have a bunch of spheres, then collision detection is easy, but
: costly in parsing time.

  You mean easy relatively speaking?-)

  Yes, it's easy in the sense that you can easily write the appropriate code
with pov-script (even with pov3.1).

  But the math is not so easy. You need to know some physics math (momentum
calculations and so on) to get the collisions, resulting speeds and directions,
etc accurately.
  For example, it's not easy at all to make the math to simulate a pool
game (and this is in 2D).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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