MStachowicz/Spirit

Collision visualisation

Closed this issue · 0 comments

Entities with collision components can render their collision mesh.

  • Render AABB at entity position.
  • Add AABB to Mesh.
  • Set the size of the AABB to size of Mesh AABB on init.
  • Scale the AABB according to the Transform scale.
  • change the colour of the AABB when collision occurs.

CollisionComponent