remainingVelocity
Returns the remaining velocity that couldn't be used when performing a Rigidbody2D.Slide.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public Vector2 remainingVelocity { readonly get; set; }
Remarks
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 Rigidbody2D.SlideMovement.