C# Class AIBehavior.MecanimNavMeshPathScript

Inheritance: MonoBehaviour
Afficher le fichier Open project: NathanWarden/ai-behavior

Méthodes publiques

Свойство Type Description
directionVariable string
mecanimAnimator Animator
minDistanceMoveThreshold float
rotationLerpRate float
speedVariable string

Méthodes publiques

Méthode Description
OnDrawGizmos ( ) : void
OnNewDestination ( Vector3 targetPoint, float movementSpeed, float rotationSpeed ) : void
Start ( ) : void
Update ( ) : void
UpdateVerticalAndHorizontalMovement ( ) : void

Private Methods

Méthode Description
GetCharacterOffsetVector ( ) : Vector3
GetTurnValue ( Vector3 offsetVector ) : float
ShouldMoveForward ( Vector3 offsetVector ) : bool
ShouldTurn ( Vector3 offsetVector ) : bool

Method Details

OnDrawGizmos() public méthode

public OnDrawGizmos ( ) : void
Résultat void

OnNewDestination() public méthode

public OnNewDestination ( Vector3 targetPoint, float movementSpeed, float rotationSpeed ) : void
targetPoint Vector3
movementSpeed float
rotationSpeed float
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

UpdateVerticalAndHorizontalMovement() public méthode

public UpdateVerticalAndHorizontalMovement ( ) : void
Résultat void

Property Details

directionVariable public_oe property

This needs to be the name as the Direction variable within your mecanim AnimationController.
public string directionVariable
Résultat string

mecanimAnimator public_oe property

This is a reference to the Animator component you wish to target. If none is specified, it will automatically try and find one within this MonoBehaviour or its' children.
public Animator mecanimAnimator
Résultat Animator

minDistanceMoveThreshold public_oe property

This is the minimum distance the agent needs to be from its' destination before it starts moving.
public float minDistanceMoveThreshold
Résultat float

rotationLerpRate public_oe property

This is how fast the mecanim Direction variable will be lerped.
public float rotationLerpRate
Résultat float

speedVariable public_oe property

This needs to be the name as the Speed variable within your mecanim AnimationController.
public string speedVariable
Résultat string