Version: 2023.2
언어: 한국어
public bool useNoMove ;

설명

Controls if any Rigidbody2D movement will happen or not.

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.

See Also: Rigidbody2D.SlideResults.position, Rigidbody2D.Slide and SlideResults.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961