MoveToRandomPosition
MoveToRandomPosition(Vector3, float, float, float, bool)
public void MoveToRandomPosition(Vector3 center, float speed, float radius, float stoppingDistance, bool checkRaycast) ;
説明
指定半径内のランダムな位置に向かって移動する
パラメーター
| パラメーター名 | 説明 |
|---|---|
| center | 中心 |
| speed | 移動する速さ |
| radius | 開始位置からの半径 |
| stoppingDistance | 停止距離 |
| checkRaycast | レイキャストによる補正を行うかどうか。 trueの場合壁を迂回せずに壁に向かって移動する。 |
MoveToRandomPosition(float, float, float, bool)
public void MoveToRandomPosition(float speed, float radius, float stoppingDistance, bool checkRaycast) ;
説明
開始位置から指定半径内のランダムな位置に向かって移動する
パラメーター
| パラメーター名 | 説明 |
|---|---|
| speed | 移動する速さ |
| radius | 開始位置からの半径 |
| stoppingDistance | 停止距離 |
| checkRaycast | レイキャストによる補正を行うかどうか。 trueの場合壁を迂回せずに壁に向かって移動する。 |