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

[Bullet] move_and_slide is unstable with bullet physics. #50877

Open
Tracked by #45022
EMBYRDEV opened this issue Jul 26, 2021 · 1 comment
Open
Tracked by #45022

[Bullet] move_and_slide is unstable with bullet physics. #50877

EMBYRDEV opened this issue Jul 26, 2021 · 1 comment

Comments

@EMBYRDEV
Copy link
Contributor

EMBYRDEV commented Jul 26, 2021

Godot version

3.3.2.stable

System information

Windows 10

Issue description

godot

It appears that something is wrong with either is_on_floor (I have tried using it before and after calling move_and_slide) or move_and_slide itself with the Bullet physics engine.

In the third person demo I noticed the camera was jittering slightly soI narrowed it down to the player itself jittering. I tried several fixes in player.gd including only applying gravity when in the air and zeroing out velocity.y when you are on the ground however the only fix was to switch physics engines.

Steps to reproduce

Use of gravity with move_and_slide.

Minimal reproduction project

https://github.com/godotengine/tps-demo

See player.gd... having played around with many workarounds the only thing that worked was changing physics engine to Godot Physics.

@pouleyKetchoupp pouleyKetchoupp changed the title move_and_slide is unstable with bullet physics. [Bullet] move_and_slide is unstable with bullet physics. Oct 1, 2021
@akien-mga
Copy link
Member

Still reproducible in 3.5 RC 1 and latest 3.x (2e6b9ec).

@akien-mga akien-mga added this to the 3.x milestone May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants