Loading...
Searching...
No Matches
CityBuilderCore.WalkingAgentState Class Reference

Detailed Description

helper class for Walker that hold the current status when the walker is using a navmesh agent to reach a target

Classes

class  WalkingAgentData
 

Public Member Functions

 WalkingAgentState (Vector3 destination)
 
void Cancel ()
 requests for the agent walking to be canceled, it might not end immediately but at the next possible point
 
WalkingAgentData GetData ()
 

Static Public Member Functions

static WalkingAgentState FromData (WalkingAgentData data)
 

Properties

Vector3 Destination [get]
 destination world position for the agent
 
Vector3 Velocity [get, set]
 current velocity of the agent
 
bool IsCanceled [get]
 whether the walking has been canceled