Jump to content
  • Advertisement


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


Collision with Cylinders

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

http://www.flipcode.com/cgi-bin/msg.cgi?showThread=COTD-PointInCylinder&forum=cotd&id=-1 i found that while browsing through the cotd archives, and wondered if it were possible to modify it so that it works with a cylinder defined by a mid-point, direction, length and radius? it can be the half-length if that makes things easier. the other example at the bottom of the page uses a rounded cylinder which is perfect for my representation, (just pass the half-length^2 as the ball radius^2), and i dont really want to start converting cylinders from one format to another just for the sake of a good collision detection algo! thanks in advance,

Share this post

Link to post
Share on other sites
Wouldn't the simplest way be to project the point onto the plane formed by the cylinder's "normal"(the vector representing the direction of the cylinder) and then just do a simple distance check?

I think I misunderstood the question.. :/
Too sleepy to look more into it.

[edited by - Tjoppen on January 28, 2003 3:23:20 PM]

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!