Rotating Colliders Managed to correctly rotate the collider of the entities. It’s really not that difficult now. However I have a new problem to worry about. The Separating Axis Theorem is not that happy with the rotation. I think it’s starting to penetrate the tile. But since I dont have a way to move an entity back out of a tile it can get stuck. Well not really stuck, because you can also rotate it back out. But the behaviour is definitely incorrect.

So I have to come up with a way to solve this. At the top of my head I’m thinking about using a negative tClosest, so that we can move the entity back out. However I hope there is a better solution which prevents penetration completely. Otherwise I may have to redo the collision again and make it use the penetration vector, instead of preventing penetration.

Last modified: December 1, 2022