Version: 2023.2
public Vector2 remainingVelocity ;

描述

Returns the remaining velocity that couldn't be used when performing a Rigidbody2D.Slide.

There are a few reasons why all the specified velocity may not be used: An error occured due to an invalid argument provided. The Rigidbody2D.SlideMovement.maxIterations was reached so movement was stopped. Additional resources: Rigidbody2D.Slide and SlideMovement.