Skip to main content
gamedev.net
🔒 Locked

Intersectiontest

Started by Fredrik Dahlberg May 25, 2003 at 12:35 PM 1 replies 350+ views
Original Post
Fredrik Dahlberg
Fredrik Dahlberg
Hi! I want to do a triangle/cylinder intersection test. I''m not sure how to do it. I have this idea that if I first construct a vector from the center of the triangle to the center of the cylinder. Then project this vector on the plane that the cylinder stands on (always the xz-plane. Then, if I extrude the triangle in the direction of this triangle with a length equal to the radius. I belive I can do a ray/box (my extruded triangle) intersection test instead. Is this correct? Any better ideas? /Fredrik
Leyder Dylan
Leyder Dylan
www.gametutorials.com

========================
Leyder Dylan (dylan.leyder@slug-production.be.tf
http://www.slug-production.be.tf/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
Fredrik Dahlberg
Fredrik Dahlberg
Thanks for the link (www.gametutorials.com)!

...but it didn''t help me. I found a lot of other intersectiontests but not what I wanted (and they recommended to use spheres as bounding volumes for the characters). I want to use cylinders and and cylinders it''s gonna be.

/Fredrik

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.