Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

position

The position to use.

Remarks