SetStartPosition(Vector2)
A helper method that simultaneously sets both the Rigidbody2D.SlideMovement.startPosition to the specified /position but also sets Rigidbody2D.SlideMovement.useStartPosition to true.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public void SetStartPosition(Vector2 position)
Parameters
The position to use.
Remarks
Additional Resources: Rigidbody2D.SlideMovement.useStartPosition and Rigidbody2D.SlideMovement.startPosition.