Property | 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 |
Property | 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 |
Method | Description | |
---|---|---|
GetFeetPosition ( ) : Vector3 | ||
OnDestroy ( ) : void | ||
OnPathComplete ( Path, _p ) : void | ||
OnTargetReached ( ) : void | ||
RepeatTrySearchPath ( ) : IEnumerator | ||
SearchPath ( ) : void | ||
TrySearchPath ( ) : void | ||
Update ( ) : void |
Method | 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 | |
return | Vector3 |
protected CalculateVelocity ( Vector3 currentPosition ) : Vector3 | ||
currentPosition | Vector3 | |
return | Vector3 |
protected RotateTowards ( Vector3 dir ) : void | ||
dir | Vector3 | |
return | void |
protected XZSqrMagnitude ( Vector3 a, Vector3 b ) : float | ||
a | Vector3 | |
b | Vector3 | |
return | float |
protected CharacterController controller | ||
return | CharacterController |
protected NavmeshController navController | ||
return | NavmeshController |