Table of Contents

Class AINavigator

Namespace
FistVR
Assembly
Assembly-CSharp.dll
public class AINavigator : AIBodyPiece, IFVRDamageable
Inheritance
AINavigator
Implements
Inherited Members

Constructors

AINavigator()

public AINavigator()

Fields

Agent

public NavMeshAgent Agent

Field Value

NavMeshAgent

BaseRB

public Rigidbody BaseRB

Field Value

Rigidbody

DestinationThreshold

public float DestinationThreshold

Field Value

float

GroundCastPoints

public Transform[] GroundCastPoints

Field Value

Transform[]

IsAtDestination

public bool IsAtDestination

Field Value

bool

IsPermanentlyDisabled

public bool IsPermanentlyDisabled

Field Value

bool

LMGround

public LayerMask LMGround

Field Value

LayerMask

MaxLinearSpeed

public float MaxLinearSpeed

Field Value

float

MaxTurningSpeed

public float MaxTurningSpeed

Field Value

float

TimeTilPlatesReset

public float TimeTilPlatesReset

Field Value

float

m_currentDestination

protected Vector3 m_currentDestination

Field Value

Vector3

m_currentNavTarget

protected Vector3 m_currentNavTarget

Field Value

Vector3

m_nHit

protected NavMeshHit m_nHit

Field Value

NavMeshHit

Methods

Awake()

public override void Awake()

DestroyEvent()

public override void DestroyEvent()

FixedUpdate()

public override void FixedUpdate()

GetDestination()

public Vector3 GetDestination()

Returns

Vector3

GetFurthestNearPointFrom(Vector3)

public Vector3 GetFurthestNearPointFrom(Vector3 targ)

Parameters

targ Vector3

Returns

Vector3

GetNearestNearPointFrom(Vector3)

public Vector3 GetNearestNearPointFrom(Vector3 targ)

Parameters

targ Vector3

Returns

Vector3

GetRandomNearDestination()

public Vector3 GetRandomNearDestination()

Returns

Vector3

RotateTowards(Vector3)

public void RotateTowards(Vector3 point)

Parameters

point Vector3

SetMovementIntensity(float)

public void SetMovementIntensity(float f)

Parameters

f float

SetNewNavDestination(Vector3)

public void SetNewNavDestination(Vector3 dest)

Parameters

dest Vector3

SetPlateDamaged(bool)

public override bool SetPlateDamaged(bool b)

Parameters

b bool

Returns

bool

SetPlateDisabled(bool)

public override bool SetPlateDisabled(bool b)

Parameters

b bool

Returns

bool

TryToSetDestinationTo(Vector3)

public void TryToSetDestinationTo(Vector3 point)

Parameters

point Vector3

Update()

public override void Update()

UpdateNavigationSystem()

public void UpdateNavigationSystem()