Jump to content
  • Advertisement
Sign in to follow this  
EvilNando

Collision detection?

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

Im planning to build an isometric game, but given the requirements I see no need to implement a tile grid for rendering the world, instead I was thinking of just displaying one sprite for the land and multiple sprites for the level props (houses, trees...) The problem is I have no idea of a good way to handle collisions in this kind of situation.

My initial thought is to just assign rotated rectangles that somehow match the area where the collision should be

Im open to better alterantives

Share this post


Link to post
Share on other sites
Advertisement
You could give them AABB and use them for collision detection just like you would a 3D game. It depends on your requirements. Sprite based collision detection obviously won't work. You need to build your game like a 3D game.

Share this post


Link to post
Share on other sites
Hi there,

Take a look at a couple of articles I wrote on the subject:

http://www.wildbunny.co.uk/blog/2011/02/23/2d-isometric-land-breaking-out-of-the-grid/

http://www.wildbunny.co.uk/blog/2011/03/01/2d-isometric-land-%e2%80%93-breaking-out-of-the-grid-part-2/

http://www.wildbunny.co.uk/blog/2011/03/18/2d-isometric-land-breaking-out-of-the-grid-update/

:)

Cheers, Paul.

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!