Sign in to follow this  
EvilNando

Collision detection?

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this