2D Tile Collision free movement
- by andrepcg
I'm coding a 3D game for a project using OpenGL and I'm trying to do tile collision on a surface.
The surface plane is split into a grid of 64x64 pixels and I can simply check if the (x,y) tile is empty or not.
Besides having a grid for collision, there's still free movement inside a tile.
For each entity, in the end of the update function I…