zerocontribution / rpg

Winter game
Apache License 2.0
0 stars 0 forks source link

Bounding boxes on tiles are not rotated to match isometric projection #21

Open robzienert opened 10 years ago

robzienert commented 10 years ago

Bounding boxes for ISO tiles (as seen when an entity is moving) need to be rotated to fit the actual tile as seen on the screen.

robzienert commented 10 years ago

You can permanently enable the bounding box debugging within the CollisionDebugSystem

zachwood commented 10 years ago

Rectangles can't be rotated, so it looks like we'll have to use Polygons instead. Polygons have different coordinate attributes which means the collision detection will need to be altered accordingly. (x, y) vs. (getX, getyY) ...and probably other stuff too.

robzienert commented 10 years ago

Makes sense.

robzienert commented 10 years ago

Found this stuff - there might be math in there that could help.

https://bitbucket.org/dermetfan/libgdx-utils/src/1a6c43fa1656/libgdx-utils/src/net/dermetfan/utils/libgdx/?at=default