useStartPosition
Whether the specified Rigidbody2D.SlideMovement.startPosition should be used or not.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public bool useStartPosition { readonly get; set; }
Remarks
When false, the Rigidbody2D.SlideMovement.startPosition will not be used but instead the current Rigidbody2D.position will be used.
When true, the specified Rigidbody2D.SlideMovement.startPosition will be used.
Additional Resources: Rigidbody2D.SlideMovement.startPosition, Rigidbody2D.Slide and Rigidbody2D.SlideResults.