dimforge / dimforge/bevy_rapier

KinematicCharacterController gets stuck inside the collider when free falling

Open
#520 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

Got an issue with a following setup:
1. CC setup with collider set as cuboid;
2. Translation is set downwards (see as falling) and horizontal is set towards collider / wall;
3. CC gets pushed upwards only, instead of upwards and right (opposite side) of to depenetrate.
4. Which results in a CC getting stuck like so:
![image](https://github.com/dimforge/bevy_rapier/assets/24496266/5c83a80c-6c46-4346-b349-e61bb13dd314)

Zoomed in, it looks like this:
![image](https://github.com/dimforge/bevy_rapier/assets/24496266/f7d9473c-9f98-4506-902b-7d7fac6a18c2)
![image](https://github.com/dimforge/bevy_rapier/assets/24496266/0c0f2541-577d-4337-8275-010cf6757643)

Any suggestions how to workaround this?

I've tried adjusting character offset to larger value, but that messes up the autostepping and still does not seems to be reliable enough.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.