POV-Ray : Newsgroups : povray.general : Collision detection : Re: Collision detection Server Time
19 Nov 2024 12:21:54 EST (-0500)
  Re: Collision detection  
From: Christopher James Huff
Date: 2 Mar 2002 15:24:37
Message: <chrishuff-F735D5.15244202032002@netplex.aussie.org>
In article <3c81302d@news.povray.org>, "Kevin Loney" <klo### [at] pt2mcom> 
wrote:

> Does anyone have any suggestions as to how I would go about detecting a
> collision between an edge of a triangle and an object? vertex collision is
> easy but the edge detection completly confuses me, I've had some ideas but
> none of them are very practical, and they don't give me the point of
> intersection.

Use trace() along the edge of the triangle, if the distance to the 
intersection is less than the length of the edge, the edge collides with 
the object.

-- 
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.