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

KinematicCharacterController gets stuck inside the collider when free falling #520

Open
VergilUa opened this issue Jun 9, 2024 · 1 comment

Comments

@VergilUa
Copy link

VergilUa commented Jun 9, 2024

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

Zoomed in, it looks like this:
image
image

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.

@VergilUa
Copy link
Author

VergilUa commented Jun 15, 2024

For the future readers:
As a workaround, ended up writing a depenetration algorithm on X axis that applies opposite movement from overlapping hits from the edges of CC.

Still, would be nice to have an [optional?] CCD for the KCC.
As it seems to passthrough colliders and triggers / sensors with high movement delta / cc.translation.

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