Jump to content
  • Advertisement

Archived

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

SimDemon

More help please!(Collision)

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

Well, I have a question. If I had a plane, loaded from a world file, how would I detect if something intersects the plane, such as a square. Like this: ------- | | | | -> This is the plane | | ----- -- | | | | -> This is the intersecting square -- How would I know if it intersects the plane. I think I might need: Ax + By + Cz + D = 0 Which is the plane equation. If thispost = 0 Then GoBack() Else Read() End If

Share this post


Link to post
Share on other sites
Advertisement
Split your square into two triangles and take a look at the numerous algortihms for triangle-plane intersection on the web, and on this site.

Cédric

Share this post


Link to post
Share on other sites
Sorry, but I couldn''t find anything here or anywhere else. Any links?

If thispost = 0 Then
GoBack()

Else
Read()
End If

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!