POV-Ray : Newsgroups : povray.general : Collision detection : Re: Collision detection Server Time
6 Aug 2024 14:22:53 EDT (-0400)
  Re: Collision detection  
From: Christopher James Huff
Date: 2 Mar 2002 20:24:05
Message: <chrishuff-E8DC38.20240202032002@netplex.aussie.org>
In article <3c813859$1@news.povray.org>,
 "Kevin Loney" <klo### [at] pt2mcom> wrote:

> I've considered that method which is by far the easiest but it won't work
> very well for a cloth because I need to find the exact point of collision so
> I can calculate accurate bounce.

If you mean to find the point the side first hit the object, there is no 
way to do that exactly. You would have to use infinitely many steps.
However, you could do the tracing from both ends of the side, and pick a 
point in the middle of the two intersections for a slightly more 
accurate approximation. Or take the last position of the edge and the 
current position, and perform several samples to get a better result. I 
think the best solution is just a higher resolution cloth and smaller 
step values though.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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