Свойство | Type | Description | |
---|---|---|---|
canMove | bool | ||
canSearch | bool | ||
closestOnPathCheck | bool | ||
endReachedDistance | float | ||
forwardLook | float | ||
pickNextWaypointDist | float | ||
recyclePaths | bool | ||
repathRate | float | ||
slowdownDistance | float | ||
speed | float | ||
target | Transform | ||
turningSpeed | float |
Свойство | Type | Description | |
---|---|---|---|
canSearchAgain | bool | ||
controller | CharacterController | ||
currentWaypointIndex | int | ||
minMoveScale | float | ||
navController | NavmeshController | ||
path | Path | ||
rigid | Rigidbody | ||
seeker | Seeker | ||
targetDirection | Vector3 | ||
targetPoint | Vector3 | ||
targetReached | bool | ||
tr | Transform |
Méthode | Description | |
---|---|---|
GetFeetPosition ( ) : Vector3 | ||
OnDestroy ( ) : void | ||
OnPathComplete ( Path, _p ) : void | ||
OnTargetReached ( ) : void | ||
RepeatTrySearchPath ( ) : IEnumerator | ||
SearchPath ( ) : void | ||
TrySearchPath ( ) : void | ||
Update ( ) : void |
Méthode | Description | |
---|---|---|
Awake ( ) : void | ||
CalculateTargetPoint ( Vector3 p, Vector3 a, Vector3 b ) : Vector3 | ||
CalculateVelocity ( Vector3 currentPosition ) : Vector3 | ||
OnEnable ( ) : void | ||
RotateTowards ( Vector3 dir ) : void | ||
Start ( ) : void | ||
WaitForRepath ( ) : IEnumerator | ||
XZSqrMagnitude ( Vector3 a, Vector3 b ) : float |
protected CalculateTargetPoint ( Vector3 p, Vector3 a, Vector3 b ) : Vector3 | ||
p | Vector3 | |
a | Vector3 | |
b | Vector3 | |
Résultat | Vector3 |
protected CalculateVelocity ( Vector3 currentPosition ) : Vector3 | ||
currentPosition | Vector3 | |
Résultat | Vector3 |
public RepeatTrySearchPath ( ) : IEnumerator | ||
Résultat | IEnumerator |
protected RotateTowards ( Vector3 dir ) : void | ||
dir | Vector3 | |
Résultat | void |
protected XZSqrMagnitude ( Vector3 a, Vector3 b ) : float | ||
a | Vector3 | |
b | Vector3 | |
Résultat | float |
protected CharacterController controller | ||
Résultat | CharacterController |
protected NavmeshController navController | ||
Résultat | NavmeshController |