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.

Public Methods

DrawGizmos ()
Public

Public Variables

offset

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

Public
radius

Radius of the circle.

Public
target

Target point to rotate around.

Public

Private/Protected Members

Awake ()
Protected
OnEnable ()
Private
OnUpgradeSerializedData (migrations, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
Update ()
Private
UpgradeSerializedData (isUnityThread)
Protected
ai
Private