Skip to content
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

feat: character controller improvements #627

Merged
merged 9 commits into from
May 5, 2024

Conversation

sebcrozet
Copy link
Member

@sebcrozet sebcrozet commented May 5, 2024

The main objective for this PR is to fix the issue where character controllers might get stuck against vertical walls.

  • The kinematic character controller autostepping is now disabled by default.
  • Add KinematicCharacterController::normal_nudge_factor used to help getting the character unstuck
    due to rounding errors.
  • Rename TOI to ShapeCastHit.
  • Rename many fields from toi to time_of_impact.
  • The QueryPipeline::cast_shape method now takes a ShapeCastOptions instead of the max_toi
    and stop_at_penetration parameters. This allows a couple of extra configurations, including the
    ability to have the shape-cast target a specific distance instead of actual shape overlap.

Close #612
Fix #418
Fix #611
Fix dimforge/bevy_rapier#489

@sebcrozet sebcrozet merged commit e4d6755 into master May 5, 2024
5 checks passed
@sebcrozet sebcrozet deleted the character-controller-improvements branch May 5, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant