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.

Vector2 getFloorVelocity() nothrow @nogc const;