-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Move_and_slide_with_snap fails to follow a moving platform if stop_on_slope is set to true #30311
Comments
I think this affects |
https://godotengine.org/article/godot-31-will-get-many-improvements-kinematicbody According to this article, this kind of thing shouldn't really be an issue. @Janders1800 Are you moving the platform with the animation player? It seems like the "Sync To Physics" setting was never exposed for the 3D KinematicBody. |
Yeah, I'm moving the platform with the animation player. I don't know if it's a lack of implementation, but one would assume the function should behave the same, only changing its behavior according to the altered param. |
Yah, I am experiencing this too in 3.2.1. If I call I am using 3D with a |
This happens in 2D too. And it still can be reproduced in version 3.2.2-beta3. |
Getting this in 2D too (3.2.1 stable), it took me half a day to debug this because I didn't know the stop_on_slope was the culprit. |
In 3D I found out that I can have stop_on_slope withing move_and_slide_with_snap with slopes and with a moving platform. There's huge BUT. |
The core problem is that The The The The problem is, to simulate the |
Can't be temporally subtracted the linear velocity of the platform, so the check only takes into account the movement of the KinematicBody itself? regardless of its moving on a platform? Or check the Y component of the linear velocity before adding the linear velocity of the platform? Or add the linear velocity of the platform after cheeking the Y component? |
There are two problems with the current
I think the first problem is a simple bug (and perhaps @Janders1800 is facing this problem). But the second problem is fundamentally in the implementation of The floor velocity is calculate in several parts of |
Godot version:
3.1.1
OS/device including version:
Zorin OS 12 Core (Ubuntu 16.04 LTS)
Issue description:
If a KinematicBody is on top of a moving platform will not move is stop_on_slope is set to true, this only happens if stop_on_slope is set to true, if is set to false it works OK.
https://youtu.be/QOzdqGwLxUg
Also the KinematicBody doesn't doesn't follow the rotation of the platform regardless of stop_on_slope.
Steps to reproduce:
Move a KinematicBody on top of a moving platform with stop_on_slope set to true
Bugsquad edit: MRP: kinematic_test.zip
The text was updated successfully, but these errors were encountered: