-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
RayShapes in 3D sometimes causes player to vibrate in place #34663
Comments
Can you reproduce this if you set Physics > 3d > Physics Engine to GodotPhysics in the Project Settings? |
Hello @Calinou, yes. I can verify that this occurs under Bullet and GodotPhysics on my end. |
I am just starting to enter this hobby and godot, but this sounds pretty typical of any (all?) physics systems. @DenisBelmondo perhaps try find a way to dampen physics on the object after stopping movement. |
Hello @jasonswearingen, welcome. Unfortunately, at least, as a result of my own testing, I have ensured that my player's Y velocity while standing on the floor is 0.0. When explicitly setting the Y velocity to 0.0 during floor checks, the single RayShape setup seems to benefit the most (very little visible jittering in place), though the multiple RayShape setup seems to jitter regardless. This could be because the use of multiple RayShapes in this way is non-standard. Many RayShapes at once trying to de-penetrate the player, or something along those lines. |
Duplicate of #29392? |
These changes improve Rayshape behavior for Godot Physics 2D and 3D when using move_and_slide with and without snapping. Kinematic margin is now applied to ray shapes when handling snapping collision tests and separation raycasts to help getting consistent results in slopes and flat surfaces. Recovery is calculated without the margin and a depth of 0 is still considered a collision to stabilize results when on flat surface. Recovery is split based on the amount of shapes to fix cases where multiple rayshapes would cause the body to bounce. Fixes godotengine#34098 Fixes godotengine#34663
These changes improve Rayshape behavior for Godot Physics 2D and 3D when using move_and_slide with and without snapping. Kinematic margin is now applied to ray shapes when handling snapping collision tests and separation raycasts to help getting consistent results in slopes and flat surfaces. Recovery is calculated without the margin and a depth of 0 is still considered a collision to stabilize results when on flat surface. Recovery is split based on the amount of shapes to fix cases where multiple rayshapes would cause the body to bounce. Fixes godotengine#34098 Fixes godotengine#34663
Godot version:
3.2
OS/device including version:
Windows 10 64-bit
Issue description:
Player with multiple RayShapes as part of their Collision Shapes vibrates in place very slightly when just on ground.
Steps to reproduce:
In the reproduction project, walk for a brief moment and then stop. You can observe the player vibrating in place very slightly even when fully stopped. This is very inconsistent, so it may take a few tries to be able to see it.
Minimal reproduction project:
movement - Copy.zip
Additional notes:
This still occurs even with one RayShape. To test, delete all the nodes named "LegX" (where X is a number) except for "Leg5".
The text was updated successfully, but these errors were encountered: