Skip to content

Preserve lateral movement on collision #15

Description

@rlam1

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions