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