Jump to content
  • Advertisement

Archived

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

Jo

Checking a point inside a poly...

This topic is 6491 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!