Collision acts strange
Posted: Wed Jul 24, 2024 8:33 am
hi !
can someone please help me with a simple aabb collision system where collision with multiple tiles and corners can happen ?
i want if i hi a wall that velocity stop according from which side i collided and then that i can run smoothly along the wall directly.
but if i do now for example running into a wall from top to down and continue pressing the down button and then press 1 time d for right
the player fast speed to the left...
you know eventually why ?
https://pastebin.com/XySJfCAJ
thanks in advance !
can someone please help me with a simple aabb collision system where collision with multiple tiles and corners can happen ?
i want if i hi a wall that velocity stop according from which side i collided and then that i can run smoothly along the wall directly.
but if i do now for example running into a wall from top to down and continue pressing the down button and then press 1 time d for right
the player fast speed to the left...
you know eventually why ?
https://pastebin.com/XySJfCAJ
thanks in advance !