C# 클래스 AIBehavior.MecanimNavMeshPathScript

상속: MonoBehaviour
파일 보기 프로젝트 열기: NathanWarden/ai-behavior

공개 프로퍼티들

프로퍼티 타입 설명
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