Player gets stuck between two walls when I press w and d or a
What is the expected result
It should just pass through
What is the actual result
It gets stuck until I let go of d or a
Related screenshots
this is basically what it looks like, depending on the angle, if I press w and d (or “a” at certain times) it will get stuck until I let go of d or a, (in the picture the purple cubes are meant to be two walls, player is green cube)
Are the 2 wall sections perfectly aligned? As in they both have identical x origin values (assuming the origin is in the top left)? Not that one is a decimal point different, but they’re both 100% the same.
If they are the same, can you share the events that move the player and separate the player from the wall objects?
Does it only works with topdown behavior? Idk how to make an FPS with topdown behavior. (Edit): okay that’s not the problem, I can fix that. BUT the problem now is. If an object is rotated (2d rotation) it will not collide as if it were rotated, this only happens with the behaviors. Know any fixes?