Urho.Navigation.CrowdAgent Class

Crowd agent component, requires a CrowdManager component in the scene. When not set explicitly, agent's radius and height are defaulted to navigation mesh's agent radius and height, respectively.

See Also: CrowdAgent

Syntax

public class CrowdAgent : Component

Requirements

Namespace: Urho.Navigation
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Navigation.CrowdAgent are listed below.

See Also: Component

Public Constructors

Constructs a new instance of Urho.Navigation.CrowdAgent which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Navigation.CrowdAgent, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Navigation.CrowdAgent linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

[read-only]
ActualVelocityVector3. Return the agent's actual velocity.
[read-only]
AgentCrowdIdInt32. Return the agent id.
[read-only]
AgentStateCrowdAgentState. Return the agent's state.
[read-only]
DesiredVelocityVector3. Return the agent's desired velocity.
HeightSingle. Get the agent's height. Or Set the agent's height.
[read-only]
InCrowdBoolean. Return true when the agent is in crowd (being managed by a crowd manager).
MaxAccelSingle. Get the agent's max acceleration. Or Set the agent's max acceleration.
MaxSpeedSingle. Get the agent's max velocity. Or Set the agent's max velocity.
NavigationPushinessNavigationPushiness. Get the agent's navigation pushiness. Or Set the agent's navigation pushiness.
NavigationQualityNavigationQuality. Get the agent's navigation quality. Or Set the agent's navigation quality.
ObstacleAvoidanceTypeUInt32. Get the agent's obstacle avoidance type. Or Set the agent's obstacle avoidance type.
[read-only]
PositionVector3. Return the agent's position.
QueryFilterTypeUInt32. Get the agent's query filter type. Or Set the agent's query filter type.
RadiusSingle. Get the agent's radius. Or Set the agent's radius.
[read-only]
RequestedTargetTypeCrowdAgentRequestedTarget. Return the agent's requested target type, if any.
TargetPositionVector3. Return the agent's requested target position. Or Submit a new target position request for this agent.
[read-only]
TargetStateCrowdAgentTargetState. Return the agent's target state.
TargetVelocityVector3. Return the agent's requested target velocity. Or Submit a new target velocity request for this agent.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.
UpdateNodePositionBoolean. Return true when the node's position should be updated by the CrowdManager. Or Update the node position. When set to false, the node position should be updated by other means (e.g. using Physics) in response to the E_CROWD_AGENT_REPOSITION event.

Public Methods

override
ApplyAttributes()
Apply attribute changes that can not be applied immediately. Called after scene load or a network update.
DrawDebugGeometry(Boolean)
Draw debug geometry.
override
DrawDebugGeometry(DebugRenderer, Boolean)
Draw debug feelers.
HasArrived() : Boolean
Return true when the agent has arrived at its target.
HasRequestedTarget() : Boolean
Return true when the agent has a target.
override
OnSetEnabled()
Handle enabled/disabled state change.
static
RegisterObject(Context)
Register object factory.
ResetTarget()
Reset any target request for the specified agent.