Version: 2023.2
public Vector2 startPosition ;

描述

The start position to slide the Rigidbody2D from.

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 SlideResults.