The Balance ability will keep the character oriented in the forward/backward direction of a narrow platform. The ability will restrict the character’s rotation so they can only move forward or backwards along the object.

While active, Balance derives a travel axis from the detected object’s forward direction. Level-authoring orientation is therefore intentional data: two visually identical beams with opposite or sideways forward axes can produce different facing behavior.

Setup

  1. Position Balance near the top of the ability list so it can override lower-priority locomotion abilities.

  2. Set up the balance object. Include its ground collider’s layer in Layer Mask. If Object ID is not -1, also add an Object Identifier with the matching ID to that collider’s GameObject. See Detect Ground Ability Base for the shared detection settings. Point the object’s forward direction along its length.

    A narrow balance object with its forward direction aligned along the platform.

Key settings

Inspector field Purpose
Force Direction Influence A (0-1) value indicating how much influence the character should rotate towards the balance direction. Set to 1 to always face the balance direction.

Author balance objects

Use a simple collider whose long axis matches the object’s forward direction. The top must be wide enough for the character’s ground detection to remain stable but narrow enough that the normal movement mode should not be used. If a long beam is assembled from several objects, give every segment a consistent forward axis and include all segments in the same detection filter.

Force Direction Influence blends the requested facing toward the beam axis. A value near 1 creates a strict tightrope presentation; a lower value preserves more of the incoming facing but can look unstable when the player reverses. Tune the value while entering from both ends and while changing direction near the middle.

If Balance repeatedly starts and stops, inspect the top collider for seams or width changes. Every segment must match Layer Mask and, when enabled, Object ID. If the character faces across the beam, rotate the balance object’s transform rather than compensating with character input settings.