C# Класс AIBehavior.MecanimNavMeshPathScript

Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
directionVariable string
mecanimAnimator Animator
minDistanceMoveThreshold float
rotationLerpRate float
speedVariable string

Открытые методы

Метод Описание
OnDrawGizmos ( ) : void
OnNewDestination ( Vector3 targetPoint, float movementSpeed, float rotationSpeed ) : void
Start ( ) : void
Update ( ) : void
UpdateVerticalAndHorizontalMovement ( ) : void

Приватные методы

Метод Описание
GetCharacterOffsetVector ( ) : Vector3
GetTurnValue ( Vector3 offsetVector ) : float
ShouldMoveForward ( Vector3 offsetVector ) : bool
ShouldTurn ( Vector3 offsetVector ) : bool

Описание методов

OnDrawGizmos() публичный Метод

public OnDrawGizmos ( ) : void
Результат void

OnNewDestination() публичный Метод

public OnNewDestination ( Vector3 targetPoint, float movementSpeed, float rotationSpeed ) : void
targetPoint Vector3
movementSpeed float
rotationSpeed float
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

UpdateVerticalAndHorizontalMovement() публичный Метод

public UpdateVerticalAndHorizontalMovement ( ) : void
Результат void

Описание свойств

directionVariable публичное свойство

This needs to be the name as the Direction variable within your mecanim AnimationController.
public string directionVariable
Результат string

mecanimAnimator публичное свойство

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
Результат Animator

minDistanceMoveThreshold публичное свойство

This is the minimum distance the agent needs to be from its' destination before it starts moving.
public float minDistanceMoveThreshold
Результат float

rotationLerpRate публичное свойство

This is how fast the mecanim Direction variable will be lerped.
public float rotationLerpRate
Результат float

speedVariable публичное свойство

This needs to be the name as the Speed variable within your mecanim AnimationController.
public string speedVariable
Результат string