# WallRun (v1.4.0) - Detailed API Reference

By **Twikia Studios** · UE 5.5 - 5.8 · Tested Platform: `Win64` · Single-Player Only (Not Network Replicated)

## Dependencies & Module Setup

- **Required Engine Plugin:** `EnhancedInput` (declared enabled in `WallRun.uplugin`; no Niagara or third-party dependencies required).
- **Runtime Module:** `WallRunRuntime` (`PublicDependencyModuleNames.Add("WallRunRuntime");`)
- **Runtime Module:** `WallRunRuntime` (`Core`, `CoreUObject`, `Engine`, `InputCore`, `EnhancedInput`, `UMG`, `Slate`, `SlateCore`).

## 1. Architecture & Feature Breakdown

### Architecture & Core Systems

WallRun provides UWallRunComponent for wall detection, along-wall velocity projection, corner-angle transitions, vertical velocity dampening, cooldown management, and directional wall jumps, paired with UWallRunCameraFXComponent for smooth camera roll tilt and FOV widening.

Entry supports two modes: automatic airborne wall detection (bAutoDetectWalls = true) or hold-to-wall-run via IA_WallRun. Wall jumping can be triggered automatically via IA_WallJump or manually through TryWallJump(). When assigning IA_WallRun or IA_WallJump on the component, InputMappingContext is optional if your character or PlayerController already registers an Enhanced Input Mapping Context containing those actions.

### Wall Jump Launch Math & Contracts

ComputeWallJumpVelocity blends WallPushOffForce along the wall normal, WallUpForce vertically, and ForwardMaintainFactor along the player's directional input, scaled proportionally to the character's JumpZVelocity relative to JumpHeight. Optional inward/outward push scaling and inward velocity stripping prevent awkward wall-clipping or weak hops.

Implement IWallRunCharacterContract on custom characters to supply movement input and jump eligibility, or IWallRunListener to react to wall-run enter, exit, and launch events.

## 2. Classes, Components & Subsystems

| Class | Inherits From | Header | Description |
| --- | --- | --- | --- |
| UWallRunCameraModifier | public UCameraModifier | WallRunCameraFXComponent.h | Camera modifier that applies additive Wall Run camera FX from UWallRunCameraFXComponent. |
| UWallRunCameraFXComponent | public UActorComponent | WallRunCameraFXComponent.h | Additive camera roll and FOV layers while wall running, applied via UWallRunCameraModifier without writing the camera component. |
| UWallRunComponent | public UActorComponent | WallRunComponent.h | Standalone wall-running and wall-jumping state/ability component for ACharacter owners. |

## 3. Complete Details Panel Configuration & Properties

| Owner | Property | Type | Category | Default | Description |
| --- | --- | --- | --- | --- | --- |
| FWallRunCameraFXOffset | FOVDegrees | float | WallRun\|CameraFX | 0.0f | Degrees added on top of the camera's current field of view. |
| FWallRunCameraFXOffset | RollDegrees | float | WallRun\|CameraFX | 0.0f | Degrees of roll added about the view forward axis on top of the current camera rotation. |
| UWallRunCameraFXComponent | BaseFOV | float | WallRun\|CameraFX | 90.0f | Reference field of view in degrees used to express wall-run FOV as an additive delta (WallRunFOV - BaseFOV); never written to the camera. |
| UWallRunCameraFXComponent | WallRunFOV | float | WallRun\|CameraFX | 105.0f | Target total FOV in degrees while wall running; only the additive delta (WallRunFOV - BaseFOV) is applied on top of the camera's current FOV. |
| UWallRunCameraFXComponent | MaxTiltDegrees | float | WallRun\|CameraFX | 15.0f | Maximum additive camera roll in degrees about the view axis while wall running. |
| UWallRunCameraFXComponent | BlendSpeed | float | WallRun\|CameraFX | 10.0f | Interpolation speed used to blend each layer's current offset toward its target. |
| UWallRunCameraFXComponent | TargetSpringArm | FComponentReference | WallRun\|CameraFX | - | Optional Spring Arm reference; FX apply only when this camera's owning actor is the view target (leave unset to use the owner's camera). |
| UWallRunCameraFXComponent | TargetCamera | FComponentReference | WallRun\|CameraFX | - | Optional Camera reference for FOV readback and view-target matching (leave unset to auto-bind the character's default Camera on BeginPlay). |
| UWallRunCameraFXComponent | SpringArm | TWeakObjectPtr<USpringArmComponent> | General | - | Configures spring arm under General. |
| UWallRunCameraFXComponent | Camera | TWeakObjectPtr<UCameraComponent> | General | - | Configures camera under General. |
| UWallRunComponent | bAutoDetectWalls | bool | WallRun\|Setup | false | Detect walls automatically while airborne with movement input (toggleable in Details -> WallRun\|Setup; no C++ needed). Disable to require a hold key or Blueprint logic. |
| UWallRunComponent | bWallRunAllowed | bool | WallRun\|Setup | true | Gates whether wall running is allowed to enter or continue. Toggle from state machines, stamina logic, or Details without Tick entry. |
| UWallRunComponent | WallRunSpeed | float | WallRun\|Config | 1000.0f | Target horizontal movement speed in cm/s along the wall surface while wall running. |
| UWallRunComponent | ZDampening | float | WallRun\|Config | 0.2f | Vertical velocity dampening factor [0..1] applied to Z velocity while wall running (lower values reduce downward gravity drop). |
| UWallRunComponent | WallDetectionRadius | float | WallRun\|Config | 120.0f | Lateral sphere/line trace reach in centimeters (cm) from the character capsule used to detect runnable walls. |
| UWallRunComponent | WallTraceChannel | TEnumAsByte<ETraceTypeQuery> | WallRun\|Config | TraceTypeQuery1 | Collision trace channel used by the wall-detection sphere sweep; runnable walls must Block this channel and ignored geometry must Ignore it (default Visibility; set any project trace channel in Details). |
| UWallRunComponent | MaxWallNormalZ | float | WallRun\|Config | 0.3f | Maximum absolute Z component allowed on a surface normal to qualify as a runnable vertical wall (e.g. 0.3 rejects floors and steep ramps). |
| UWallRunComponent | CornerNormalDotThreshold | float | WallRun\|Config | 0.9999f | Dot-product threshold between the active wall normal and a newly detected wall normal below which a corner transition is detected. |
| UWallRunComponent | WallRunCooldown | float | WallRun\|Config | 0.3f | Cooldown duration in seconds after exiting a wall run before wall running can re-engage. |
| UWallRunComponent | InputMappingContext | TObjectPtr<UInputMappingContext> | WallRun\|Input | - | Enhanced Input Mapping Context automatically registered on the local player when IA_WallRun or IA_WallJump is assigned. |
| UWallRunComponent | IA_WallRun | TObjectPtr<UInputAction> | WallRun\|Input | - | Optional hold-to-wall-run Enhanced Input action (e.g. Left Shift). When assigned, wall run only engages while held and exits on release. |
| UWallRunComponent | IA_WallJump | TObjectPtr<UInputAction> | WallRun\|Input | - | Optional Enhanced Input action bound automatically to TryWallJump when triggered while airborne near a wall. |
| UWallRunComponent | InputMappingPriority | int32 | WallRun\|Input | 1 | Priority level used when adding InputMappingContext to UEnhancedInputLocalPlayerSubsystem. |
| UWallRunComponent | WallPushOffForce | float | WallRun\|Jump | 700.0f | Base outward impulse force in cm/s applied along the wall normal when executing a wall jump. |
| UWallRunComponent | WallUpForce | float | WallRun\|Jump | 600.0f | Upward Z velocity impulse in cm/s applied when launching off a wall during a wall jump. |
| UWallRunComponent | JumpHeight | float | WallRun\|Jump | 600.0f | Reference jump height in cm/s used to scale WallPushOffForce and WallUpForce proportionally to the character's JumpZVelocity. |
| UWallRunComponent | ForwardMaintainFactor | float | WallRun\|Jump | 650.0f | Directional momentum factor in cm/s blended with player WASD input when computing the wall-jump launch vector. |
| UWallRunComponent | InwardInputPushScale | float | WallRun\|Jump | 0.5f | Scales how much holding toward the wall (e.g. D into a right wall) reduces push-off via ForwardMaintainFactor. 0.0 = clamped (same push-off as neutral), 0.5 = balanced tighter wall hop (-375), 1.0 = full original reduction (-50). |
| UWallRunComponent | OutwardInputPushScale | float | WallRun\|Jump | 1.0f | Scales extra push-off from ForwardMaintainFactor when holding away from the wall (e.g. A from a right wall). |
| UWallRunComponent | bStripInwardVelocityOnWallJump | bool | WallRun\|Jump | true | When true, pre-existing velocity pointing into the wall is cleared before applying the wall-jump launch. |
| UWallRunComponent | bClearOpposingVelocityOnWallJump | bool | WallRun\|Jump | true | When true, holding a key opposing current along-wall travel (e.g. S while wall running forward) clears opposing tangent velocity so you jump backward cleanly. |
| UWallRunComponent | WallJumpCooldown | float | WallRun\|Jump | 0.5f | Cooldown duration in seconds after a wall jump before another wall jump can be triggered. |
| UWallRunComponent | CameraFX | TWeakObjectPtr<UWallRunCameraFXComponent> | General | - | Configures camera fx under General. |

## 4. Complete Methods & Functions Reference

| Owner | Method | Specifiers | Inputs / Outputs | Functionality |
| --- | --- | --- | --- | --- |
| UWallRunCameraFXComponent | BindCameraTargets | BlueprintCallable | In: USpringArmComponent* InSpringArm<br>In: UCameraComponent* InCamera | Resolves the SpringArm and Camera components used for reference binding and view-target checks. |
| UWallRunCameraFXComponent | UpdateWallTilt | BlueprintCallable | In: const FVector& WallNormal<br>In: bool bWallRunning | Updates the built-in WallRun layer targets from the wall normal (additive FOV and roll; does not modify the camera). |
| UWallRunCameraFXComponent | SetCameraFXLayer | BlueprintCallable | In: FName LayerId<br>In: const FWallRunCameraFXOffset& TargetOffset | Sets or updates a named custom camera FX layer that blends toward the target additive offset. |
| UWallRunCameraFXComponent | RemoveCameraFXLayer | BlueprintCallable | In: FName LayerId | Blends a custom layer's target to zero and removes it once settled. |
| UWallRunCameraFXComponent | ResetCameraFX | BlueprintCallable | None | Sets every layer target to zero and removes custom layers once settled. |
| UWallRunCameraFXComponent | GetCameraFXLayerOffset | BlueprintPure | In: FName LayerId<br>Return: FWallRunCameraFXOffset | Returns the current blended additive offset for a layer (zero if unknown). |
| UWallRunCameraFXComponent | GetTotalCameraFXOffset | BlueprintPure | Return: FWallRunCameraFXOffset | Sum of every layer's current blended additive offset (what the modifier applies on top of the view). |
| UWallRunCameraFXComponent | GetCurrentRollDegrees | BlueprintPure | Return: float | Returns the current total additive roll in degrees across all layers. |
| UWallRunCameraFXComponent | GetCurrentFOV | BlueprintPure | Return: float | Returns the camera's current FOV plus total additive FOV offset in degrees (does not read a written WallRun FOV). |
| UWallRunComponent | CheckIfNearWall | BlueprintCallable | Out: FVector &OutWallNormal<br>Return: bool | Tests whether a nearby vertical surface satisfies the wall-normal filter and returns its normal. |
| UWallRunComponent | CheckWallNormal | BlueprintPure | In: const FVector &WallNormal<br>Return: bool | Returns true when the given impact normal is vertical enough for wall running (\|Normal.Z\| <= MaxWallNormalZ). |
| UWallRunComponent | CheckIfCorner | BlueprintPure | In: const FVector &CandidateNormal<br>Return: bool | Returns true when the detected wall normal differs sufficiently from the active wall normal to indicate a corner. |
| UWallRunComponent | IsAllowedToEnter | BlueprintCallable | Out: FVector &OutWallNormal<br>Return: bool | Returns true if cooldown has elapsed, the owner is falling, and a valid wall is within detection radius. |
| UWallRunComponent | TryEnterWallRun | BlueprintCallable | Return: bool | Attempts to enter the wall-run state against the nearest valid wall. |
| UWallRunComponent | ExitWallRun | BlueprintCallable | In: bool bStartCooldown = true | Exits the active wall-run state and optionally starts the wall-run cooldown timer. |
| UWallRunComponent | UpdateWallRunStep | BlueprintCallable | In: float DeltaTime | Updates velocity along the active wall plane for the current movement input; exposes public testing of a step. |
| UWallRunComponent | TryWallJump | BlueprintCallable | Out: FVector &OutLaunchVelocity<br>Return: bool | Executes a wall jump from the detected wall if falling and off cooldown; outputs the launch velocity (cm/s). |
| UWallRunComponent | ComputeWallJumpVelocity | BlueprintPure | In: const FVector &WallNormal<br>In: const FVector &InputDirection<br>Return: FVector | Computes the pure wall-jump launch velocity (cm/s) from a wall normal and normalized input direction. |
| UWallRunComponent | ComputeWallRunVelocity | BlueprintPure | In: const FVector &WallNormal<br>In: const FVector2D &MoveInput<br>Return: FVector | Computes the projected wall-run velocity (cm/s) from the wall normal and horizontal 2D movement input. |
| UWallRunComponent | BindCameraFX | BlueprintCallable | In: UWallRunCameraFXComponent *InCameraFX | Links a UWallRunCameraFXComponent to drive tilt/FOV (auto-discovered on the same actor on BeginPlay; call manually for external or runtime-added CameraFX). |
| UWallRunComponent | SetAutoDetectWalls | BlueprintCallable | In: bool bEnabled | Enables or disables automatic wall detection at runtime (mirrors the Auto Detect Walls toggle in Details). |
| UWallRunComponent | SetWallRunAllowed | BlueprintCallable | In: bool bAllowed | Enables or disables wall-run permission at runtime; exits an active wall run when set to false. |
| UWallRunComponent | IsWallRunAllowed | BlueprintPure | Return: bool | Returns true when wall running is currently permitted by the bWallRunAllowed flag. |
| UWallRunComponent | ShouldAutoDetectEntry | BlueprintPure | Return: bool | Returns true when automatic timer-based wall entry is enabled (bAutoDetectWalls). |
| UWallRunComponent | IsWallRunInputHeld | BlueprintPure | Return: bool | Returns true while the optional IA_WallRun hold input is currently pressed. |
| UWallRunComponent | IsWallRunning | BlueprintPure | Return: bool | Returns whether wall running is currently active. |
| UWallRunComponent | IsOnWallRunCooldown | BlueprintPure | Return: bool | Returns whether wall-run entry is currently on cooldown. |
| UWallRunComponent | IsOnWallJumpCooldown | BlueprintPure | Return: bool | Returns whether wall jumping is currently on cooldown. |
| UWallRunComponent | GetCurrentWallNormal | BlueprintPure | Return: FVector | Returns the world impact normal of the active or most recently detected wall. |
| UWallRunComponent | SetMoveInputOverride | BlueprintCallable | In: const FVector2D &InMoveInput | Overrides the 2D movement input used when owner does not implement IWallRunCharacterContract. |

## 5. Complete Event Delegates & Callbacks

| Owner | Delegate | Signature / Parameters | Description |
| --- | --- | --- | --- |
| UWallRunCameraFXComponent | OnCameraFXLayerChanged | FName, LayerId, const FWallRunCameraFXOffset&, TargetOffset | Broadcast when a layer's target offset is set or cleared (including the built-in WallRun layer from UpdateWallTilt). |
| UWallRunCameraFXComponent | OnCameraFXReset | void | Broadcast when ResetCameraFX targets all layers to zero. |
| UWallRunComponent | OnWallRunEntered | const FVector &, WallNormal | Broadcasts the wall surface normal immediately when the character enters a wall run. |
| UWallRunComponent | OnWallRunExited | void | Broadcasts immediately when the character exits an active wall run. |
| UWallRunComponent | OnWallJumpLaunched | const FVector &, WallNormal, const FVector &, LaunchVelocity | Broadcasts the wall normal and launch velocity (cm/s) immediately when a wall jump is executed. |

## Blueprint & C++ Interfaces

| Interface | Method | Specifiers | Inputs / Outputs | Functionality |
| --- | --- | --- | --- | --- |
| IWallRunCharacterContract | GetWallRunMoveInput | BlueprintCallable, BlueprintNativeEvent | Return: FVector2D | Returns the horizontal 2D movement input vector (X = right, Y = forward). |
| IWallRunCharacterContract | CanExecuteWallJump | BlueprintCallable, BlueprintNativeEvent | Return: bool | Returns whether a wall jump is currently allowed. |
| IWallRunListener | OnWallRunEntered | BlueprintCallable, BlueprintNativeEvent | In: const FVector &WallNormal | Called when wall running begins against a surface with the given world normal. |
| IWallRunListener | OnWallRunExited | BlueprintCallable, BlueprintNativeEvent | None | Called when wall running stops. |
| IWallRunListener | OnWallJumpLaunched | BlueprintCallable, BlueprintNativeEvent | In: const FVector &WallNormal<br>In: const FVector &LaunchVelocity | Called after a wall jump launches the character with the computed launch velocity (cm/s). |

## Structs

| Struct | Header | Description |
| --- | --- | --- |
| FWallRunCameraFXOffset | WallRunCameraFXComponent.h | Additive FOV and roll offsets applied on top of the active camera view (degrees). |
