Jump to content
  • Advertisement


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

Fish HF

cylinder-triangle collision

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

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

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!