• Articles
  • Api Documentation
Show / Hide Table of Contents
  • AlchemyBow.Navigation
    • AlchemyNavigationSystem
    • BasicAgent
    • FacesHolder
    • NavigationAct
    • NavigationFaceWrapper
    • NavigationInfo
    • PathfindingRequest
    • PathfindingRequest.PathType
    • PathfindingRequest.Status
  • AlchemyBow.Navigation.BackgroundProcessing
    • BackgroundProcessor
    • BackgroundProcessor.States
    • BuildingProcess
    • IBackgroundCommand
    • PathfindingProcess
    • RegisterFaceCommand
    • UnregisterFaceCommand
  • AlchemyBow.Navigation.Collections
    • OrderedSet<T>
    • OrderedSetNode<T>
    • OrderedSetRangeComparer<T>
  • AlchemyBow.Navigation.DebugUnits
    • AlchemyNavigationSystemDebugUnit
    • CompositeSurfaceDrawer
    • GizmosSurfaceDrawer
    • ISurfaceDrawer
    • MinimalGizmosSurfaceDrawer
  • AlchemyBow.Navigation.HighLevel
    • MeshBasedBake
    • MeshBasedBakeGroup
    • MeshBasedBakeSettings
    • WorldMesh
  • AlchemyBow.Navigation.PropertyAttributes
    • AreaIndexAttribute
    • AreaMaskAttribute
    • LayerIndexAttribute
  • AlchemyBow.Navigation.Settings
    • AlchemyNavigationSettingsPreset
    • NavigationAreaSettings
    • NavigationLayerSettings
    • NavigationSettings
  • AlchemyBow.Navigation.Simple
    • SimpleAgent
  • AlchemyBow.Navigation.Simple.Elements
    • AvoidanceGroup
    • AvoidanceModifier
    • CachedFace
    • ISteeredBehaviour
    • MovementModifier
    • PathProgress
  • AlchemyBow.Navigation.Surfaces
    • Edge
    • Face
    • FacesByMagnitudeRangeComparer
    • NavigationSurface
    • SurfaceRaycastHit
    • Usage<TUser>
    • UsageTrackingObject<TUser>
    • Vertex
    • VertexByPositionComparer
  • AlchemyBow.Navigation.Surfaces.SafeAccess
    • IImmutableFace
    • SurfaceImmutableRaycastHit
  • AlchemyBow.Navigation.Utilities
    • ChannelUnwrapper
    • FaceAStar
    • FaceStarUnit
    • Funnel
    • ICommand

Class SimpleAgent

A high level component that allows you to create characters that intelligently move along navigation meshes to their destinations.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
BasicAgent
SimpleAgent
Implements
ISteeredBehaviour
Inherited Members
BasicAgent.Radius
BasicAgent.HasDestination
BasicAgent.HasPendingRequests
BasicAgent.Layer
BasicAgent.AreaMask
BasicAgent.RequestPath(Vector3, Vector3, PathfindingRequest.PathType, IImmutableFace)
BasicAgent.CancelAllRequests()
BasicAgent.OnConnectionWithSystemLost()
Namespace: AlchemyBow.Navigation.Simple
Assembly: AlchemyBow.Navigation.dll
Syntax
[SelectionBase]
public sealed class SimpleAgent : BasicAgent, ISteeredBehaviour

Properties

| Improve this Doc View Source

IsPathWalking

Determines whether an agent is walking along the path.

Declaration
protected override bool IsPathWalking { get; }
Property Value
Type Description
System.Boolean

true if the agent is walking along the path; otherwise, false.

Overrides
BasicAgent.IsPathWalking
| Improve this Doc View Source

Velocity

Gets the velocity at which the agent is moving.

Declaration
public Vector3 Velocity { get; }
Property Value
Type Description
UnityEngine.Vector3

The velocity at which the agent is moving.

Methods

| Improve this Doc View Source

OnAgentDisable()

Called when the agent becomes disabled or inactive.

Declaration
protected override void OnAgentDisable()
Overrides
BasicAgent.OnAgentDisable()
| Improve this Doc View Source

OnAgentEnable()

Called when the agent becomes enabled and active.

Declaration
protected override void OnAgentEnable()
Overrides
BasicAgent.OnAgentEnable()
| Improve this Doc View Source

OnAreaMaskChanged()

Called when the area mask property is changed.

Declaration
protected override void OnAreaMaskChanged()
Overrides
BasicAgent.OnAreaMaskChanged()
| Improve this Doc View Source

OnLayerChanged()

Called when the layer property is changed.

Declaration
protected override void OnLayerChanged()
Overrides
BasicAgent.OnLayerChanged()
| Improve this Doc View Source

OnPath(Vector3[], IImmutableFace[])

Called when one of the requested paths is calculated.

Declaration
protected override void OnPath(Vector3[] pointPath, IImmutableFace[] facePath)
Parameters
Type Name Description
UnityEngine.Vector3[] pointPath

The calculated path consisting of waypoints.

IImmutableFace[] facePath

The calculated path consisting of faces.

Overrides
BasicAgent.OnPath(Vector3[], IImmutableFace[])
| Improve this Doc View Source

OnRequestsCanceled()

Called when requests are canceled.

Declaration
protected override void OnRequestsCanceled()
Overrides
BasicAgent.OnRequestsCanceled()
| Improve this Doc View Source

OnSurfaceAvailable(PathfindingRequest)

Called when the surface becomes available.

Declaration
protected override void OnSurfaceAvailable(PathfindingRequest delayedRequest)
Parameters
Type Name Description
PathfindingRequest delayedRequest

A request that was delayed until surface becomes available.

Overrides
BasicAgent.OnSurfaceAvailable(PathfindingRequest)
| Improve this Doc View Source

ReloadMovementModifiers()

Reloads all movement modifiers.

Declaration
public void ReloadMovementModifiers()
Remarks

You need to call this method when movement modifiers are added/removed at run-time.

| Improve this Doc View Source

SetDestination(Vector3, Boolean)

Sets the target location.

Declaration
public void SetDestination(Vector3 destination, bool stopCurrentMovement)
Parameters
Type Name Description
UnityEngine.Vector3 destination

The the target location.

System.Boolean stopCurrentMovement

Determines whether to stop the current motion or not.

Events

| Improve this Doc View Source

OnDestinationReached

Raised when the agent reaches the target location.

Declaration
public event NavigationAct OnDestinationReached
Event Type
Type Description
NavigationAct

Implements

ISteeredBehaviour
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX