Class MoveInCircle Extends VersionedMonoBehaviour

Public

Moves an agent in a circle around a point.

This script is intended as an example of how you can make an agent move in a circle. In a real game, you may want to replace this script with your own custom script that is tailored to your game. The code in this script is simple enough to copy and paste wherever you need it.

When used in an ECS subscene, it will automatically be baked into a DestinationMoveInCircle component.

Inner Types

ECS component corresponding to MoveInCircle.

Public Methods

Public Static Methods

CalculateDestination (position, target, targetUp, radius, offset)

Public Variables

offset

Distance between the agent's current position, and the destination it will get.

Public
radius

Radius of the circle.

Public
target
Public

Private/Protected Members

Awake ()
OnUpgradeSerializedData (migrations, unityThread)

Handle serialization backwards compatibility.

Reset ()

Handle serialization backwards compatibility.

Update ()
UpgradeSerializedData (isUnityThread)
ai
Private