Target Orbit reshapes supplied movement so a character can circle a selected object while retaining its current planar radius. It supports target-lock combat and AI arcs. Movement input, speed, target selection, camera framing, and obstacle avoidance remain owned by the corresponding character systems.

Configure a fixed target

  1. In Ultimate Character Locomotion > Abilities, select + and add Target Orbit.
  2. Place this concurrent ability near the bottom, below movement writers whose result it should reshape.
  3. Keep Enabled selected, leave Use Assist Aim Target disabled, and assign the scene object’s Transform to Target.
  4. Keep a nonzero separation in the plane perpendicular to the character’s up direction. Choose who controls facing and supply normal movement before testing.
Inspector field Default Purpose
Start Type / Stop Type Automatic / Automatic Starts with a resolved target and stops when no target remains.
Use Assist Aim Target Disabled Uses a current Assist Aim target preferentially, with the fixed target as fallback.
Target None Fixed scene Transform for orbiting or fallback selection.
Rotate Towards Target Disabled Enable when this ability should also own planar target-facing rotation.
State / Ability Index Parameter Empty / -1 Uses ordinary animation; optionally assign a lock-on property preset.

Target Orbit uses a fixed Orbit Target, Automatic start and stop, Use Assist Aim Target disabled, and Rotate Towards Target enabled.

Follow Assist Aim selection

Add Assist Aim before the character initializes and configure its search, switching, stickiness, break force, and camera behavior. Its default automatic search uses Enemy Layers, Radius 10, Angle 10, and Require Line Of Sight enabled.

Enable Use Assist Aim Target on Target Orbit and optionally keep a fixed fallback. It reads the current AssistAim.Target; Assist Aim still owns acquiring/changing that target and any camera lock.

Choose one deliberate facing owner: Target Orbit’s Rotate Towards Target or Assist Aim’s Rotate Character Towards Target. Disable Assist Aim’s Move Character Towards Target when this orbit setup should be the sole movement modifier during item use, or explicitly coordinate their order.

Input, radius, and facing

Movement Orbit response
Tangential/sideways input Reshapes planar Desired Movement into an arc with the inward correction needed to retain the current radius.
Purely radial input Leaves the underlying approach/retreat movement unchanged.
Diagonal input Uses its tangential component and the available planar movement magnitude for the arc.
Vertical movement Remains available; target height is excluded from the orbit plane.

The movement source must supply both nonzero input and planar Desired Movement. Root-motion distance can be reshaped into an arc just like motor movement. Keep open clearance around the entire corrected arc and use navigation to choose a safe route. A project-specific collision-aware orbit owner is appropriate where the corrected step needs its own obstacle checks.

Player and AI frames

For a player, Raw Input Vector is interpreted through the attached look source’s rotation, or the character’s rotation when no look source is attached. Camera-relative input therefore follows the chosen camera/view setup; orbiting itself leaves camera framing unchanged.

With LocalLookSource, AI uses processed Input Vector as its input gate and planar Desired Movement as the preferred world direction. Small desired movement falls back to character-relative input for the direction calculation, but a meaningful planar movement step is still needed for an arc. AI navigation continues to own destinations and avoidance.

Facing and final order

With Rotate Towards Target, the ability projects the target direction onto the character’s up plane and writes Desired Rotation using Motor Rotation Speed (source default 0.15). This becomes the facing owner for that update, including root-motion characters; later rotation modifiers can still change the result.

Position correction happens during ApplyPosition, after the normal movement/collision calculation. Keep later Desired Movement writers and direct Transform changes coordinated so they preserve the intended arc. Target changes are used on the next update without restarting. Losing both preferred and fallback targets ends the automatic ability.

Verify motion and target changes

  1. Assign a fixed target several metres away. Confirm (Active) in Play Mode, then circle in both directions for several turns and watch planar separation for drift.
  2. Approach/retreat directly and confirm the radius can change. Test diagonal input, root-motion distance, vertical motion, and the intended camera yaw range.
  3. Enable Rotate Towards Target and confirm level facing without pitch toward a high/low target. Tune motor response and inspect other active rotation writers.
  4. With Assist Aim enabled, acquire/switch targets and verify the next update follows the selection. Clear the preferred target and confirm the fixed fallback, or stopping when none remains.
  5. For AI, verify nonzero processed input plus movement, and test the navigation owner’s clearance around obstacles. Inspect final movement order if the radius drifts or competing systems pull inward.

For missing motion, inspect input and planar desired movement before tuning the orbit. For missing activation, inspect the resolved target, Enabled, and blockers. For incorrect facing/camera behavior, inspect the selected owners and camera configuration.

Runtime target ownership

The public configuration properties are UseAssistAimTarget and RotateTowardsTarget. For runtime target switching, use AssistAim.Target with the preferred-target option, or expose the protected fixed m_Target field in a project-specific subclass. Assist Aim’s OnAimTargetChange(int, Transform, bool) reports its target changes; Target Orbit uses the standard ability activation lifecycle.

Related: Rotate Towards, Restrict Rotation, Third Person Combat, Camera View Types, and Abilities.