C# Class NavmeshController, TheUnseen

Inheritance: MonoBehaviour
Mostrar archivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
forwardPlanning float

Protected Properties

Property Type Description
controller CharacterController
prevNode GraphNode
prevPos Vector3

Public Methods

Method Description
ClampAlongNavmesh ( Vector3 startPos, GraphNode _startNode, Vector3 endPos, Vector3 &clampedPos ) : GraphNode
ClampMove ( Vector3 currentPosition, Vector3 direction ) : Vector3
ClampToNavmesh ( Vector3 target ) : Vector3
SimpleMove ( Vector3 currentPosition, Vector3 direction ) : Vector3
Start ( ) : void
Teleport ( ) : void

Private Methods

Method Description
OnAstarAwake ( ) : void
OnDisable ( ) : void
OnRescan ( AstarPath, active ) : void

Method Details

ClampAlongNavmesh() public method

public ClampAlongNavmesh ( Vector3 startPos, GraphNode _startNode, Vector3 endPos, Vector3 &clampedPos ) : GraphNode
startPos Vector3
_startNode GraphNode
endPos Vector3
clampedPos Vector3
return GraphNode

ClampMove() public method

public ClampMove ( Vector3 currentPosition, Vector3 direction ) : Vector3
currentPosition Vector3
direction Vector3
return Vector3

ClampToNavmesh() public method

public ClampToNavmesh ( Vector3 target ) : Vector3
target Vector3
return Vector3

SimpleMove() public method

public SimpleMove ( Vector3 currentPosition, Vector3 direction ) : Vector3
currentPosition Vector3
direction Vector3
return Vector3

Start() public method

public Start ( ) : void
return void

Teleport() public method

public Teleport ( ) : void
return void

Property Details

controller protected_oe property

protected CharacterController controller
return CharacterController

forwardPlanning public_oe property

public float forwardPlanning
return float

prevNode protected_oe property

protected GraphNode prevNode
return GraphNode

prevPos protected_oe property

protected Vector3 prevPos
return Vector3