Property | Type | Description | |
---|---|---|---|
brakingRate | float | ||
mass | float | ||
maxForce | float | ||
maxSpeed | float |
Property | Type | Description | |
---|---|---|---|
controller | CharacterController | ||
curSpeed | float | ||
smoothedAcceleration | Vector3 |
Method | Description | |
---|---|---|
ApplyBrakingForce ( ) : void | ||
ApplySteeringForce ( Vector3 _force ) : void | ||
BrakeImmediately ( ) : void | ||
CurSpeed ( ) : float | ||
GetSteering_AvoidObstacle ( float _minTimeToCollision, Collider _obstacle ) : Vector3 | ||
GetSteering_Flee ( Vector3 _pos ) : Vector3 | ||
GetSteering_Flee_LimitByMaxSpeed ( Vector3 _pos ) : Vector3 | ||
GetSteering_Flee_MaxForces ( Vector3 _pos ) : Vector3 | ||
GetSteering_Seek ( Vector3 _pos ) : Vector3 | ||
GetSteering_Seek_LimitByMaxSpeed ( Vector3 _pos ) : Vector3 | ||
GetSteering_Seek_MaxForces ( Vector3 _pos ) : Vector3 | ||
GetSteering_Wander ( ) : Vector3 | ||
IsAhead ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool | ||
IsAside ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool | ||
IsBehind ( Vector3 _targetPos, float _cosThreshold = -0.707f ) : bool | ||
Velocity ( ) : Vector3 |
Method | Description | |
---|---|---|
AdjustOrientation ( Vector3 _newVelocity ) : void | ||
Awake ( ) : void | ||
ShowDebugInfo ( ) : void | ||
Start ( ) : void | ||
Update ( ) : void |
Method | Description | |
---|---|---|
AdjustRawSteeringForce ( Vector3 _force ) : Vector3 |
protected AdjustOrientation ( Vector3 _newVelocity ) : void | ||
_newVelocity | Vector3 | |
return | void |
public ApplySteeringForce ( Vector3 _force ) : void | ||
_force | Vector3 | |
return | void |
public GetSteering_AvoidObstacle ( float _minTimeToCollision, Collider _obstacle ) : Vector3 | ||
_minTimeToCollision | float | |
_obstacle | Collider | |
return | Vector3 |
public GetSteering_Flee ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
return | Vector3 |
public GetSteering_Flee_LimitByMaxSpeed ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
return | Vector3 |
public GetSteering_Flee_MaxForces ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
return | Vector3 |
public GetSteering_Seek ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
return | Vector3 |
public GetSteering_Seek_LimitByMaxSpeed ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
return | Vector3 |
public GetSteering_Seek_MaxForces ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
return | Vector3 |
public IsAhead ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
return | bool |
public IsAside ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
return | bool |
public IsBehind ( Vector3 _targetPos, float _cosThreshold = -0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
return | bool |
protected CharacterController controller | ||
return | CharacterController |