Свойство | Type | Description | |
---|---|---|---|
brakingRate | float | ||
mass | float | ||
maxForce | float | ||
maxSpeed | float |
Свойство | Type | Description | |
---|---|---|---|
controller | CharacterController | ||
curSpeed | float | ||
smoothedAcceleration | Vector3 |
Méthode | 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 |
Méthode | Description | |
---|---|---|
AdjustOrientation ( Vector3 _newVelocity ) : void | ||
Awake ( ) : void | ||
ShowDebugInfo ( ) : void | ||
Start ( ) : void | ||
Update ( ) : void |
Méthode | Description | |
---|---|---|
AdjustRawSteeringForce ( Vector3 _force ) : Vector3 |
protected AdjustOrientation ( Vector3 _newVelocity ) : void | ||
_newVelocity | Vector3 | |
Résultat | void |
public ApplySteeringForce ( Vector3 _force ) : void | ||
_force | Vector3 | |
Résultat | void |
public GetSteering_AvoidObstacle ( float _minTimeToCollision, Collider _obstacle ) : Vector3 | ||
_minTimeToCollision | float | |
_obstacle | Collider | |
Résultat | Vector3 |
public GetSteering_Flee ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Résultat | Vector3 |
public GetSteering_Flee_LimitByMaxSpeed ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Résultat | Vector3 |
public GetSteering_Flee_MaxForces ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Résultat | Vector3 |
public GetSteering_Seek ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Résultat | Vector3 |
public GetSteering_Seek_LimitByMaxSpeed ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Résultat | Vector3 |
public GetSteering_Seek_MaxForces ( Vector3 _pos ) : Vector3 | ||
_pos | Vector3 | |
Résultat | Vector3 |
public IsAhead ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
Résultat | bool |
public IsAside ( Vector3 _targetPos, float _cosThreshold = 0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
Résultat | bool |
public IsBehind ( Vector3 _targetPos, float _cosThreshold = -0.707f ) : bool | ||
_targetPos | Vector3 | |
_cosThreshold | float | |
Résultat | bool |
protected CharacterController controller | ||
Résultat | CharacterController |