Skip to main content

AgentCircleRepositionSettings

A class in Root.Township, Alta.Intelligence.

Settings for ActiveCircleReposition: a short sidestep around the target, left or right, by a set angle.

Constructors​

MemberWhat it is
AgentCircleRepositionSettings()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

6 private and internal fields
MemberWhat it is
private bool isFacingTargetBacking field for IsFacingTarget.
private bool isMovingBackwardsBacking field for IsMovingBackwards.
private AgentCircleRepositionSettings.MovementDirection movementDirectionRight or left.
private float movementDurationBacking field for MovementDuration.
private float raycastHieghtBacking field for RaycastHieght.
private float repositionAngleAngle in degrees to move around the target.

Properties​

MemberWhat it is
bool IsFacingTarget { get; }Whether the agent keeps facing the target while moving.
bool IsMovingBackwards { get; }Whether the sidestep also backs away.
bool IsMovingRight { get; private set; }True when the direction is right; set in GetAction.
float MovementDuration { get; }Passed to the walker's NormalizedMove.
float RaycastHieght { get; }Height raycasts start from when checking the new spot.
Quaternion RepositionAngle { get; private set; }Rotation around the target for the sidestep; set in GetAction.

Methods​

MemberWhat it is
protected override IAction GetAction()Works out IsMovingRight and RepositionAngle, then builds the ActiveCircleReposition action.