Archived

This topic is now archived and is closed to further replies.

Jo

Checking a point inside a poly...

Recommended Posts

Jo    122
Here's the deal... I have a point and click interface that for a variety of reasons uses a raytrace method for detecting whether or not the user has clicked an object (in 3D space). Currently I have the ray-plane part working fine, and I simplified the process by projecting the poly that I'm checking for colision onto a 2D plane. My problem is that I can't find any clear information on testing to see if a 2D point lies in a 2D triangle. I've been trying an algorithm that does 3 line tests (checks to see what side of the line it's on) but currently I'm not having any luck. What I'm looking for is a practical example. ----------------------------- Mice are an excellent source of mice. Edited by - Jo on 10/7/00 10:26:19 PM

Share this post


Link to post
Share on other sites
Jo    122
Once again I end up answering my own question. An article I found over at flipcode on colison detection ended up helping me out by linking to other pertinent articles.

http://www.flipcode.com/tutorials/tut_collision.shtml

Hopefully this post will help someone find what they''re looking for faster than I did.

Share this post


Link to post
Share on other sites