C# Class AIPath, Binary

Inheritance: MonoBehaviour
Mostra file Open project: austinshenk/Binary Class Usage Examples

Public Properties

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

Protected Properties

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

Public Methods

Method Description
GetFeetPosition ( ) : Vector3
OnDestroy ( ) : void
OnPathComplete ( Path, _p ) : void
OnTargetReached ( ) : void
RepeatTrySearchPath ( ) : IEnumerator
SearchPath ( ) : void
TrySearchPath ( ) : void
Update ( ) : void

Protected Methods

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

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CalculateTargetPoint() protected method

protected CalculateTargetPoint ( Vector3 p, Vector3 a, Vector3 b ) : Vector3
p Vector3
a Vector3
b Vector3
return Vector3

CalculateVelocity() protected method

protected CalculateVelocity ( Vector3 currentPosition ) : Vector3
currentPosition Vector3
return Vector3

GetFeetPosition() public method

public GetFeetPosition ( ) : Vector3
return Vector3

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnPathComplete() public method

public OnPathComplete ( Path, _p ) : void
_p Path,
return void

OnTargetReached() public method

public OnTargetReached ( ) : void
return void

RepeatTrySearchPath() public method

public RepeatTrySearchPath ( ) : IEnumerator
return IEnumerator

RotateTowards() protected method

protected RotateTowards ( Vector3 dir ) : void
dir Vector3
return void

SearchPath() public method

public SearchPath ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

TrySearchPath() public method

public TrySearchPath ( ) : void
return void

Update() public method

public Update ( ) : void
return void

WaitForRepath() protected method

protected WaitForRepath ( ) : IEnumerator
return IEnumerator

XZSqrMagnitude() protected method

protected XZSqrMagnitude ( Vector3 a, Vector3 b ) : float
a Vector3
b Vector3
return float

Property Details

canMove public_oe property

public bool canMove
return bool

canSearch public_oe property

public bool canSearch
return bool

canSearchAgain protected_oe property

protected bool canSearchAgain
return bool

closestOnPathCheck public_oe property

public bool closestOnPathCheck
return bool

controller protected_oe property

protected CharacterController controller
return CharacterController

currentWaypointIndex protected_oe property

protected int currentWaypointIndex
return int

endReachedDistance public_oe property

public float endReachedDistance
return float

forwardLook public_oe property

public float forwardLook
return float

minMoveScale protected_oe property

protected float minMoveScale
return float

navController protected_oe property

protected NavmeshController navController
return NavmeshController

path protected_oe property

protected Path path
return Path

pickNextWaypointDist public_oe property

public float pickNextWaypointDist
return float

recyclePaths public_oe property

public bool recyclePaths
return bool

repathRate public_oe property

public float repathRate
return float

rigid protected_oe property

protected Rigidbody rigid
return Rigidbody

seeker protected_oe property

protected Seeker seeker
return Seeker

slowdownDistance public_oe property

public float slowdownDistance
return float

speed public_oe property

public float speed
return float

target public_oe property

public Transform target
return Transform

targetDirection protected_oe property

protected Vector3 targetDirection
return Vector3

targetPoint protected_oe property

protected Vector3 targetPoint
return Vector3

targetReached protected_oe property

protected bool targetReached
return bool

tr protected_oe property

protected Transform tr
return Transform

turningSpeed public_oe property

public float turningSpeed
return float