Table of Contents

Interface IAIController

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

Composite interface for AI controllers managing NPC navigation, state transitions, and movement logic. Inherits from IAINavigation, IAIStateMachine, and IAIWaypoints for interface segregation. Consumers that only need navigation, state management, or waypoints should depend on the corresponding sub-interface instead.

public interface IAIController : IAINavigation, IAIStateMachine, IAIWaypoints, ICharacterBehaviour
Inherited Members

Properties

Home

The home position for this AI (used for leash and wandering).

Vector3 Home { get; set; }

Property Value

Vector3

Target

The current target for the AI (e.g., enemy, destination).

Transform Target { get; set; }

Property Value

Transform

VirtualCameraPosition

The simulated camera position for ability targeting. Mirrors VirtualCameraPosition for player characters.

Vector3 VirtualCameraPosition { get; }

Property Value

Vector3

VirtualCameraRotation

The simulated camera rotation for ability targeting. Mirrors VirtualCameraRotation for player characters.

Quaternion VirtualCameraRotation { get; }

Property Value

Quaternion

Methods

Initialize(Vector3, Vector3[])

Initializes the controller with a home position and optional waypoints.

void Initialize(Vector3 home, Vector3[] waypoints = null)

Parameters

home Vector3

The home position for the AI.

waypoints Vector3[]

Optional waypoints for patrol.