• Advertisement

Archived

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

More help please!(Collision)

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