Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | bribat123 |
Hello, I have recorded an output log that shows move-and-slide-with-snap failing when the player jumps from a platform with a slight slope upward. The player is a KinematicBody2D node. The platform is a StaticBody2D node. The base floor is a StaticBody2D node.
The log shows the following record info:
[platform beneath player]
[is player on floor]
[linear velocity passed into move-and-slide-with-snap]
[snap value passed into move-and-slide-with-snap]
[resulting linear velocity from move-and-slide-with-snap]
There are also lines indicating when the player starts jumping and when the jumping is completed. Here is the recorded output log summary:
{{Correct}}
body beneath player → FloorBody
player on floor
jump start
linearvelocity.y in → -780
snap → (0, 0)
move_and_slide_with_snap
linearvelocity.y out → -780
{{Wrong}}
body beneath player → StaticBody2D
player on floor
jump start
linearvelocity.y in → -780
snap → (0, 0)
move_and_slide_with_snap
linearvelocity.y out → -5.005988