Version: 2019.4
public bool updatePosition ;

説明

変換位置がシミュレーションされたエージェントの位置と同期されているかどうかにかかわらず取得か設定します。デフォルト値は True です。

True のとき、変換位置の変更は、シミュレーションされた位置に影響を与え、逆もまた同じです。

False のとき、シミュレーションされた位置は変換位置に適用されず、逆もまた同じです。

Setting updatePosition to false can be used to enable explicit control of the transform position via script. This allows you to use the agent's simulated position to drive another component, which in turn sets the transform position (eg. animation with root motion or physics).

updatePosition を (以前無効になっているので) 有効にするとき、Transform はシミュレーションされた位置に移動されます。このようにエージェントは NavMesh 表面に制約されたままにとどまります。

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