|
virtual Vector2 | DoSteeringSeek (Vector2 target, float weight) |
|
virtual Vector2 | DoSteeringWander (float weight, bool avoidWanderingOutsideLevel) |
|
virtual Vector2 | DoSteeringAvoid (float deltaTime, float lookAheadDistance, float weight, Vector2? heading=null) |
|
Definition at line 7 of file SteeringManager.cs.
◆ SteeringManager()
Barotrauma.SteeringManager.SteeringManager |
( |
ISteerable |
host | ) |
|
◆ DoSteeringAvoid()
virtual Vector2 Barotrauma.SteeringManager.DoSteeringAvoid |
( |
float |
deltaTime, |
|
|
float |
lookAheadDistance, |
|
|
float |
weight, |
|
|
Vector2? |
heading = null |
|
) |
| |
|
protectedvirtual |
◆ DoSteeringSeek()
virtual Vector2 Barotrauma.SteeringManager.DoSteeringSeek |
( |
Vector2 |
target, |
|
|
float |
weight |
|
) |
| |
|
protectedvirtual |
◆ DoSteeringWander()
virtual Vector2 Barotrauma.SteeringManager.DoSteeringWander |
( |
float |
weight, |
|
|
bool |
avoidWanderingOutsideLevel |
|
) |
| |
|
protectedvirtual |
◆ Reset()
void Barotrauma.SteeringManager.Reset |
( |
| ) |
|
◆ ResetX()
void Barotrauma.SteeringManager.ResetX |
( |
| ) |
|
◆ ResetY()
void Barotrauma.SteeringManager.ResetY |
( |
| ) |
|
◆ SteeringAvoid()
void Barotrauma.SteeringManager.SteeringAvoid |
( |
float |
deltaTime, |
|
|
float |
lookAheadDistance, |
|
|
float |
weight = 1 |
|
) |
| |
◆ SteeringManual()
void Barotrauma.SteeringManager.SteeringManual |
( |
float |
deltaTime, |
|
|
Vector2 |
velocity |
|
) |
| |
◆ SteeringSeek()
void Barotrauma.SteeringManager.SteeringSeek |
( |
Vector2 |
targetSimPos, |
|
|
float |
weight = 1 |
|
) |
| |
◆ SteeringWander()
void Barotrauma.SteeringManager.SteeringWander |
( |
float |
weight = 1 , |
|
|
bool |
avoidWanderingOutsideLevel = false |
|
) |
| |
◆ Update()
virtual void Barotrauma.SteeringManager.Update |
( |
float |
speed | ) |
|
|
virtual |
◆ CircleDistance
const float Barotrauma.SteeringManager.CircleDistance = 2.5f |
|
staticprotected |
◆ CircleRadius
const float Barotrauma.SteeringManager.CircleRadius = 0.3f |
|
staticprotected |
◆ host
◆ RayCastInterval
const float Barotrauma.SteeringManager.RayCastInterval = 0.5f |
|
staticprotected |
◆ steering
Vector2 Barotrauma.SteeringManager.steering |
|
protected |
◆ AvoidDir
Vector2 Barotrauma.SteeringManager.AvoidDir |
|
get |
◆ AvoidLookAheadPos
Vector2 Barotrauma.SteeringManager.AvoidLookAheadPos |
|
get |
◆ AvoidRayCastHitPosition
Vector2 Barotrauma.SteeringManager.AvoidRayCastHitPosition |
|
get |
◆ WanderAngle
float Barotrauma.SteeringManager.WanderAngle |
|
getset |