Skip to main content
gamedev.net
🔒 Locked

Collision detection?

Started by EvilNando 2 replies 2.6k views
Original Post
EvilNando
EvilNando
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
Tiblanc
Tiblanc
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.
Developer for Novus Dawn : a [s]Flash[/s] Unity Isometric Tactical RPG - Forums - Facebook - DevLog
EvilNando
EvilNando
well pretty much what I was thinking.. I guess theres no other way
wildbunny
wildbunny
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.