Boat passing under a bridge in a 2D tile based RTS
- by aleguna
I'm writing a 2D tile based RTS. And I want to add a 'pseudo 3D' feature to it - bridges over the rivers.
I havent't start any coding yet, just trying to think how it fits the collision detection model. A boat passing under the bridge and a unit moving over the bridge will eventually occupy the same cell on the map. How to prement them from colliding?
Is there a common approach to solve such a problem? Or I need to implement a 3D world to do this?