Jump to content
  • Advertisement

Archived

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

Fish HF

cylinder-triangle collision

This topic is 5473 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

Advertisement
Try searching the forum archive for posts about this... I think you''ll find that collision detection with cylinders is usually harder to implement and more expensive than necessary

As an alternative, capsules (cylinders with rounded ends) are fast and easy. A point is enclosed in the capsule when it''s distance to the line made by connecting the two end points is less than the capsules radius...

Share this post


Link to post
Share on other sites
Now it turned to a circle-triangle collision question....
Is it ok to do circle-triangle collision in 3d by doing some tests in 2d? like :
from the top view,
find the closest point for the three lines in the triangle to the circle,
distance test with circle radius

then do the same from the right and front view
thanks

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!