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

3D Character Controller choppy/stuck on kinematic rigidbodies #630

Open
ManevilleF opened this issue Jan 19, 2025 · 2 comments
Open

3D Character Controller choppy/stuck on kinematic rigidbodies #630

ManevilleF opened this issue Jan 19, 2025 · 2 comments

Comments

@ManevilleF
Copy link
Contributor

ManevilleF commented Jan 19, 2025

Closed by #625

I'm using the same setup as the 3d character controller example I made with one difference:

The ground cube has a Rigidbody::KinematicPositionBased component (line 74).

 commands.spawn((
        Transform::from_xyz(0.0, -ground_height, 0.0),
        Collider::cuboid(ground_size, ground_height, ground_size),
+        RigidBody::KinematicPositionBased,
    ));

Suddenly the player controller very choppy, getting stuck randomly on the ground, even though it's not moving.

I tried making a "Ground" and "Player" group and disable contact forces via SolverGroups without success.

I think this is a regression, as this setup used to work in previous versions. The only issue back then was that the character controller could get stuck on walls, but not on the ground.

@Vrixyz
Copy link
Contributor

Vrixyz commented Jan 21, 2025

Thanks for the report!

There has been a few changes to ground detection and small tweaks to collision detection upstream, which are probably at the root cause, but if #625 offers a satisfying fix, I'm putting this on my low priority list. I'm still interested in more details if anyone looks into it :)

@ManevilleF
Copy link
Contributor Author

After testing on your branch, I can confirm that #625 seems to resolve the issue

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

2 participants