Jump to content
  • Advertisement
Sign in to follow this  

Collision detection line / quad

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

I want to find out when a line segment passes through a Quad. My project currently is rendered in 3D, but movement limited to 2D sorta side scrolling. I currently use lines for most of my boundieries and collision detection with that is already completed. I just test that line segment from the boundary to the line segment created over the time step for movement. I want to incorporate 1-way walls/floors. My level editor is 3dsmax and I export to my own format. For the 1-way walls I figured I could create quads mainly just extend the line in the Z direction. This means I can then export a normal and turn the quad into plane. I can then use the Dot product to classify if the point is infront/behind the plan. How can I test to see if the point actually cross the quad I used to create the plane. The plane goes on infiniately, but I only want a subsection. Or should I just turn it into a plane to get the classify point, then have a line that corrosponds with that plane and test that line with the movement line from the last timesetp? -THACO

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • 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!