Parkour System
Beam Balance System
The Beam Balance System allows the player to walk across narrow beams with smooth alignment and movement.It is fully procedural, spline-based, and can be adjusted directly in the editor for length, mesh type, and style. This feature adds realism and traversal variety to the URPG template.
Key Features
- Procedural Spline Setup → Beams generate dynamically along a spline.
- Customizable Meshes → Supports any static mesh with scaling.
- Player Alignment → Character auto-aligns with the beam while walking.
- Entry & Exit Control → Smooth transitions when stepping onto or off beams.
- Movement Restriction → Limits movement to beam direction for balance gameplay.

Editable Parameters
Accessible under Default (Details Panel):
Mesh Length→ Defines how many segments the spline beam uses.Beam Mesh→ Static mesh used for the beam.Mesh Scale→ Scale applied to each beam segment.Z Offset→ Vertical adjustment for beam alignment.Spline Type→ Enum (Linear, Curved, etc.) to define spline interpolation.

Core Logic
1. Construction Script
- Generates beam meshes dynamically along a spline.
- Applies material and mesh scaling.
- Supports both straight and curved beams using
Spline Type.
2. Beam Entry
- Triggered when player overlaps the Beam Trace Collider.
- Checks for correct actor tag (
Beam). - Aligns the player capsule to the beam location.
- Movement is restricted to beam axis by setting walk speed and disabling off-axis input.
3. Beam Movement
- Player walks along the beam spline.
- Capsule alignment constantly updated to keep player centered.
- Controlled using
Move Component Tofor smooth transitions.
4. Beam Exit
- Pressing
Left Ctrl(or exiting spline end) triggers exit logic. - Capsule smoothly reverts to normal ground alignment.
- Restores player’s default movement speed and input control.

Known Issues (Work in Progress)
- Entering from Off-Side → Player may misalign if approaching beam from non centered position.
- Exiting Beam → Occasional offset or incorrect placement when leaving beam.
Note: These bugs are known and will be fixed in future updates. The current version is functional but may require careful approach to beams.
That’s all for the Beam Balance System....don’t fall off! 😅