Trying to figure out how to get the right normal set as the wall normal. The wall normal is the one dictating the direction of movement after the collision happened. Last time I saw that the normal was incorrect. So now I tried to just set the normal to the perpendicular of itself on collision.
Though it seems to work, the entity is not actually moving. I can see the velocity pointing somewhat into the right direction. I say somewhat, since I can see that it is still slightly pointing into the wall. However I also need to note that the wall normal is still getting set to its perpendicular. Which means even after setting the normal correct once, the frames after that the normal is still incorrect. Even though the velocity is pointing in a different direction now.
So the velocity is pointing correctly, but the entity doesn’t move. Even after checking if the normal is pointing into the incorrect direction and only then adjusting it. It’s a bit of a weird situation. But we’ll have to see next week how I will solve this…