Rotating Collision
I’ve made a start with implementing rotated colliders. I first do the normal movement checking. After that I check for the rotation specifically. In a bit of a modified way. Though I did forget to check the tile axis with the rotated entity collider. So that is already one thing I have to look at. But apart from that the rotation seems to stop correctly. When the entity hits the wall it can not move anymore. Which tells me that I probably rotate it too much. That the next frame the rotated entity is inside the wall. Then it doesn’t matter how much you move it or whatever, it won’t be coming out at that point.

Last modified: December 13, 2022