Currently when a player collides laterally on an object we drop her velocity to 0,0, To make it smoother and keep the player advancing we can check on what direction the collision happens adn only zero out that direction, be it x or z.
That way the character will just slide across the collision with the other vector direction's intact. Maybe a slight slowdown can be applied for that...
Currently when a player collides laterally on an object we drop her velocity to 0,0, To make it smoother and keep the player advancing we can check on what direction the collision happens adn only zero out that direction, be it x or z.
That way the character will just slide across the collision with the other vector direction's intact. Maybe a slight slowdown can be applied for that...