Skip to main content

ActiveAgentMoveCloser

A class in Root.Township, Alta.Intelligence.

Server: running action that slides a creature's rigidbody straight towards its target until it's at the reached distance. Settings come from AgentMoveCloserSettings.

Constructors​

MemberWhat it is
ActiveAgentMoveCloser()Creates an ActiveAgentMoveCloser with default values.

Methods​

MemberWhat it is
protected override void Update(Vector3 position, Vector3 targetPosition, Vector3 toTargetXZ, Vector3 toEdge, float flatDistance)Moves the rigidbody towards the edge of the reached distance at Speed times the creature's speed stat, and finishes once there.