startPosition
The start position to slide the Rigidbody2D from.
阅读时间1 分钟最后更新于 1 个月前
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.
Additional Resources: Rigidbody2D.SlideMovement.useStartPosition, Rigidbody2D.Slide and Rigidbody2D.SlideResults.