Function KinematicBody2D.getFloorNormal
Returns the surface normal of the floor at the last collision point. Only valid after calling moveAndSlide
or moveAndSlideWithSnap
and when isOnFloor
returns true
.
Returns the surface normal of the floor at the last collision point. Only valid after calling moveAndSlide
or moveAndSlideWithSnap
and when isOnFloor
returns true
.