Instance Property

velocity

The current velocity of the agent in 3D space.

Declaration

var velocity: vector_float3 { get }

Discussion

An agent’s velocity is a calculated property—the velocity vector is determined by an agent’s facing direction (its rotation property) and its speed property.

See Also

Running the Agent Simulation

func update(deltaTime: TimeInterval)

Causes the agent to evaluate its goals and update its position, rotation, and velocity accordingly.