position
The position that was calculate as a target position to move to when performing a Rigidbody2D.Slide.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public Vector2 position { readonly get; set; }
Remarks
When a Rigidbody2D.Slide command is complete, this will be the position that both the _position and _position are set to however, if _useSimulationMove is enabled, then neither the _position and _position will be changd upon return but a Rigidbody2D.MovePosition would have been called using this position. If _useNoMove is enabled then no move is processed at all but is simply returned here.