Wander
Wander(float, float, float, float, float)
public bool Wander(float speed, float radius, float distance, float jitter, float stoppingDistance) ;
説明
Agentを徘徊させる。
パラメーター
| パラメーター名 | 説明 | 
|---|---|
| speed | 移動する速さ | 
| radius | 徘徊する半径。 | 
| distance | 徘徊する距離。 | 
| jitter | 移動先を決めるランダムな変位の最大値。 | 
| stoppingDistance | 停止距離 | 
戻り値
移動先の設定が成功した場合にtrueを返す。それ以外はfalseを返す。
補足
徘徊の移動先は、Agentの前方方向Distanceを中心としたRadius円上の点
円上のどこになるかはJitterによってランダムに変位する。