UMovementUtils::ConstrainToPlane

Ensures input Vector (typically a velocity, acceleration, or move delta) is limited to a movement plane.