Version: 2022.2
言語: 日本語

NavMeshObstacle

class in UnityEngine.AI

/

継承:Behaviour

マニュアルに切り替える

説明

ナビメッシュエージェントが回避する障害物

ナビゲーションメッシュオブスタクルは円柱状で、指定した速度でナビメッシュの表面を動き回ることができます。デフォルトでは障害物はエージェントの回避のみに影響し、経路探索には影響しません。つまりエージェントは経路探索のときは障害物を無視し、経路に沿って移動するときに避けます。もし carving を有効化すると障害物はナビメッシュに一時的な "穴" を作成します。穴は経路探索により認識されて、障害物を避けて経路探索をします。carving がない場合、エージェントは穴まで向かい、障害物がどけられるまで渡ることができません。

See Also: NavMeshAgent.

変数

carveOnlyStationary障害物が常に動いているとき、 Carve する必要があるかどうか
carving障害物がナビメッシュにカットアウトを作成するか
carvingMoveThreshold移動ナビメッシュのカットアウトを更新するしきい値となる距離(カービングを有効としている場合)
carvingTimeToStationary障害物が静止物として扱われるまでの時間 ( Carving と carveOnlyStationary が有効なとき)
center障害物の中心、オブジェクトのローカル空間で測定されています
height障害物の円柱形状の高さ
radius障害物のカプセル形状の半径
shapeThe shape of the obstacle.
size障害物のサイズ、オブジェクトのローカル空間で測定されています
velocity障害物がナビメッシュの周りを移動する速度

継承メンバー

変数

enabled有効であれば更新され、無効であれば更新されません。
isActiveAndEnabledReports whether a GameObject and its associated Behaviour is active and enabled.
gameObjectこのコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。
tagゲームオブジェクトのタグ
transformThe Transform attached to this GameObject.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameオブジェクト名

Public 関数

BroadcastMessageゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。
CompareTagChecks the GameObject's tag against the defined tag.
GetComponentGets a reference to a component of type T on the same GameObject as the component specified.
GetComponentInChildrenGets a reference to a component of type T on the same GameObject as the component specified, or any child of the GameObject.
GetComponentInParentGets a reference to a component of type T on the same GameObject as the component specified, or any parent of the GameObject.
GetComponentsGets references to all components of type T on the same GameObject as the component specified.
GetComponentsInChildrenGets references to all components of type T on the same GameObject as the component specified, and any child of the GameObject.
GetComponentsInParentGets references to all components of type T on the same GameObject as the component specified, and any parent of the GameObject.
SendMessageゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します
SendMessageUpwardsゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します
TryGetComponentGets the component of the specified type, if it exists.
GetInstanceIDGets the instance ID of the object.
ToStringReturns the name of the object.

Static 関数

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindAnyObjectByTypeRetrieves any active loaded object of Type type.
FindFirstObjectByTypeRetrieves the first active loaded object of Type type.
FindObjectOfTypeタイプ type から最初に見つけたアクティブのオブジェクトを返します
FindObjectsByTypeRetrieves a list of all loaded objects of Type type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします

Operator

boolオブジェクトが存在するかどうか
operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。