Rigidbody2D.SlideMovement.SetStartPosition

Declaration

public void SetStartPosition(Vector2 position);

Parameters

position The position to use.

Description

A helper method that simultaneously sets both the Rigidbody2D.SlideMovement.startPosition to the specified /position but also sets Rigidbody2D.SlideMovement.useStartPosition to true.


Did you find this page useful? Please give it a rating: