AgentComp: The agentagent() component.agentSpeed: numberallowDiagonals: booleangetDistanceToTarget(): numbergetNextLocation(): Vec2 | nullgetPath(): Vec2[] | nullgetTarget(): Vec2 | nullisNavigationFinished(): booleanisTargetReachable(): booleanisTargetReached(): booleansetTarget(target: Vec2): voidonNavigationStarted(cb: ()=>void): KEventControlleronNavigationNext(cb: ()=>void): KEventControlleronNavigationEnded(cb: ()=>void): KEventControlleronTargetReached(cb: ()=>void): KEventController