fix player hovering 1px above vertical moving platform
This commit is contained in:
parent
9914542ffe
commit
0b00c9ff4a
1 changed files with 1 additions and 0 deletions
|
@ -487,6 +487,7 @@ func _process_gravity(delta: float) -> void:
|
||||||
## called after all other physics things
|
## called after all other physics things
|
||||||
func _process_movement(delta: float) -> void:
|
func _process_movement(delta: float) -> void:
|
||||||
# apply velocity and react to collisions
|
# apply velocity and react to collisions
|
||||||
|
velocity.y += get_floor_velocity().y
|
||||||
velocity = move_and_slide_with_snap(velocity, snap, Vector2.UP)
|
velocity = move_and_slide_with_snap(velocity, snap, Vector2.UP)
|
||||||
|
|
||||||
# deal with that STUPID landing exactly on corner bug
|
# deal with that STUPID landing exactly on corner bug
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue