Function KinematicBody2D.getFloorVelocity
Returns the linear velocity of the floor at the last collision point. Only valid after calling moveAndSlide
or moveAndSlideWithSnap
and when isOnFloor
returns true
.
Returns the linear velocity of the floor at the last collision point. Only valid after calling moveAndSlide
or moveAndSlideWithSnap
and when isOnFloor
returns true
.