You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS/device including version: macOS 10.15.7 (not related to graphics)
Issue description:
move_and_slide makes KinematicBody2D slide horizontally on a up-moving platform if the KinematicBody2D is on the edge and the platform is moving fast enough.
In the demo project, only a downward velocity (gravity) is applied to the player. The platform is a KinematicBody2D with sync_to_physics turned on and is moved by an AnimationPlayer. move_and_slide makes the player move right when elevating.
The MRP is using move_and_slide_with_snap, but move_and_slide behaves the same.
The MRP is made using 3.2.3. In 4.0, the slow platform speed have to be halved, i.e. the safe speed in 3.2 is bad in 4.0.
Something I don't understand: If you run the MRP, the player slides off the platform immediately on start. But after clicking "Reset" to reload_current_scene, it stays on the platform by default.
I tried some pending PRs fixing issues related to move_and_slide*, but they didn't fix this issue. (Issue #28895 seems similar, but its PR fix does not fix this issue.)
Steps to reproduce:
Use the MRP, and turn on "Fast Platform".
Related to #28895 and #43014. At high speed and when close to the edge, the collision normal returned is the normal of the side, not the top of the CollisionShape; so the object is being pushed to the side during the "unsticking" phase of test_body_motion().
I have the same problem in my game and it's beyond frustrating.
The problem also occurs when the platform is moving sideways.
Everything is set to use pyhsics frame (Animation Player too) so shouldn't the player keep standing on the platform irregardless of the speed? There is no "drag" defined. It should stay rock solid.
This is deadly for creating platformers that require tight controls.
Godot version: 3.2.3 official & 4.0 (a392aa4)
OS/device including version: macOS 10.15.7 (not related to graphics)
Issue description:
move_and_slide
makes KinematicBody2D slide horizontally on a up-moving platform if the KinematicBody2D is on the edge and the platform is moving fast enough.In the demo project, only a downward velocity (gravity) is applied to the player. The platform is a KinematicBody2D with sync_to_physics turned on and is moved by an AnimationPlayer.
move_and_slide
makes the player move right when elevating.move_and_slide_with_snap
, butmove_and_slide
behaves the same.reload_current_scene
, it stays on the platform by default.I tried some pending PRs fixing issues related to
move_and_slide*
, but they didn't fix this issue. (Issue #28895 seems similar, but its PR fix does not fix this issue.)Steps to reproduce:
Use the MRP, and turn on "Fast Platform".
Minimal reproduction project:
SlideOff.zip
The text was updated successfully, but these errors were encountered: