Interface IAstarAI

Public

Common interface for all movement scripts in the A* Pathfinding Project.

Public Methods

FinalizeMovement (nextPosition, nextRotation)

Move the agent.

Public
GetRemainingPath (buffer, stale)

Fills buffer with the remaining path.

Public
Move (deltaPosition)

Move the agent.

Public
MovementUpdate (deltaTime, nextPosition, nextRotation)

Calculate how the character wants to move during this frame.

Public
SearchPath ()

Recalculate the current path.

Public
SetPath (path, updateDestinationFromPath=true)

Make the AI follow the specified path.

Public
Teleport (newPosition, clearPath=true)

Instantly move the agent to a new position.

Public

Public Variables

canMove

Enables or disables movement completely.

Public
canSearch

Enables or disables recalculating the path at regular intervals.

Public
desiredVelocity

Velocity that this agent wants to move with.

Public
destination

Position in the world that this agent should move to.

Public
endOfPath

End point of path the agent is currently following.

Public
hasPath

True if this agent currently has a path that it follows.

Public
height

Height of the agent in world units.

Public
isStopped

Gets or sets if the agent should stop moving.

Public
maxSpeed

Max speed in world units per second.

Public
onSearchPath

Called when the agent recalculates its path.

Public
pathPending

True if a path is currently being calculated.

Public
position

Position of the agent.

Public
radius

Radius of the agent in world units.

Public
reachedDestination

True if the ai has reached the destination.

Public
reachedEndOfPath

True if the agent has reached the end of the current path.

Public
remainingDistance

Approximate remaining distance along the current path to the end of the path.

Public
rotation

Rotation of the agent.

Public
steeringTarget

Point on the path which the agent is currently moving towards.

Public
velocity

Actual velocity that the agent is moving with.

Public