Interface IAIController
- Namespace
- FishMMO.Server.Core.World.SceneServer
- Assembly
- FishMMO.Server.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
AimOrigin
The world-space point this NPC's abilities fire from, and the point it sees from.
Vector3 AimOrigin { get; }
Property Value
- Vector3
Remarks
Derived, never replicated — only the aim direction travels, and every peer re-derives the origin from the same state. See CharacterAimOrigin.
AimRotation
The rotation whose forward vector is the direction this NPC aims.
Quaternion AimRotation { get; }
Property Value
- Quaternion
Remarks
The AI counterpart of VirtualCameraRotation. A player aims with a real camera; an NPC has none, so its aim is solved toward its current target and refreshed on every network tick.
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
Methods
Initialize(Vector3, Vector3[])
Initializes the controller with a home position and optional waypoints.
void Initialize(Vector3 home, Vector3[] waypoints = null)
Parameters
homeVector3The home position for the AI.
waypointsVector3[]Optional waypoints for patrol.