Jump to content
  • Advertisement
Sign in to follow this  
Mr.L

Collision with polygon or Polyeder

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

There's something i don't understand about collision:

When i want to detect a collision between a polyeder (obstacle) and a sphere(Player), do i have to check collision between the Sphere and the polyeder(Sep. Axis th. 3d) or between the sphere and every face of the polyeder?

Share this post


Link to post
Share on other sites
Advertisement
The separating axis theorem will tell you if your objects collide, but not where. Then, if you need the exact point(s) of collision, you'll have to check with every face.

Share this post


Link to post
Share on other sites
I would build a generic triangle-triangle collision engine. You can then use that engine for just whatever "objects" you check for collision. And you can optimize the engine just ignoring the type of objects that are made of triangles.

Share this post


Link to post
Share on other sites
you mean even the player as a bunch of triangles? Edited by Mr.L

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!