Свойство | Тип | Описание | |
---|---|---|---|
brakingRate | float | ||
mass | float | ||
maxForce | float | ||
maxSpeed | float |
Свойство | Тип | Описание | |
---|---|---|---|
controller | CharacterController | ||
curSpeed | float | ||
smoothedAcceleration | Vector3 |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
AdjustOrientation ( Vector3 _newVelocity ) : void | ||
Awake ( ) : void | ||
ShowDebugInfo ( ) : void | ||
Start ( ) : void | ||
Update ( ) : void |
Метод | Описание | |
---|---|---|
AdjustRawSteeringForce ( Vector3 _force ) : Vector3 |
protected AdjustOrientation ( Vector3 _newVelocity ) : void | ||
_newVelocity | Vector3 | |
Результат | void |
public ApplySteeringForce ( Vector3 _force ) : void | ||
_force | Vector3 | |
Результат | void |
public GetSteering_AvoidObstacle ( float _minTimeToCollision, Collider _obstacle ) : Vector3 | ||
_minTimeToCollision | float | |
_obstacle | Collider | |
Результат | Vector3 |
public GetSteering_Flee ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Результат | Vector3 |
public GetSteering_Flee_LimitByMaxSpeed ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Результат | Vector3 |
public GetSteering_Flee_MaxForces ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Результат | Vector3 |
public GetSteering_Seek ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Результат | Vector3 |
public GetSteering_Seek_LimitByMaxSpeed ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Результат | Vector3 |
public GetSteering_Seek_MaxForces ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Результат | Vector3 |
public IsAhead ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
Результат | bool |
public IsAside ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
Результат | bool |
public IsBehind ( Vector3 _targetPos, float _cosThreshold = -0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
Результат | bool |
protected CharacterController controller | ||
Результат | CharacterController |