startPosition
The start position to slide the Rigidbody2D from.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public Vector2 startPosition { readonly get; set; }
Remarks
This is used when the Rigidbody2D.SlideMovement.useStartPosition is true and overrides using the current Rigidbody2D.position.
Additional Resources: Rigidbody2D.SlideMovement.useStartPosition, Rigidbody2D.Slide and Rigidbody2D.SlideResults.