Skip to content

Kinematic Character Movement Slows Down on Steep Slopes #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hongha1412 opened this issue Mar 9, 2025 · 0 comments
Open

Kinematic Character Movement Slows Down on Steep Slopes #313

hongha1412 opened this issue Mar 9, 2025 · 0 comments

Comments

@hongha1412
Copy link

When using a kinematic character body in Rapier.js, the character slows down significantly when moving up steep slopes. The velocity decreases as the slope angle increases, while movement speed remains unchanged on flat surfaces and when moving downhill.

Expected Behavior:

  • The character should maintain a consistent movement speed regardless of slope inclination.
  • The slope should not introduce unintended deceleration when moving uphill.

Actual Behavior:

  • The character's velocity decreases when moving up a slope.
  • The steeper the slope, the slower the character moves.
  • Movement downhill remains at a constant speed (same as on flat ground).

Steps to Reproduce:

  • Create a KinematicCharacterController in Rapier.js.
  • Set up a sloped surface (e.g., a static collider with an inclined angle).
  • Move the character up and down the slope with a constant input velocity.
  • Observe the slowdown effect when moving uphill.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant