useNoMove
Controls if any Rigidbody2D movement will happen or not.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public bool useNoMove { readonly get; set; }
Remarks
When a slide movement is complete, a new Rigidbody2D position has been calculated, however it may be preferred to not perform the movement of the Rigidbody2D at all.
When this is enabled, no movement will occur. The Rigidbody2D.SlideResults.position always returns the calculated position so that can be used to move the Rigidbody2D.
NOTE: If this is enabled then a Rigidbody2D.SlideMovement.useSimulationMove cannot be used and should be disabled.
Additional Resources: Rigidbody2D.SlideResults.position, Rigidbody2D.Slide and Rigidbody2D.SlideResults.