文档

Unity Engine

Unity Engine

startPosition

The start position to slide the Rigidbody2D from.
阅读时间1 分钟最后更新于 25 天前

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.