> For the complete documentation index, see [llms.txt](https://replicated-gravity.gitbook.io/replicated-gravity-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://replicated-gravity.gitbook.io/replicated-gravity-docs/home/replicated-gravity-overview.md).

# Replicated Gravity Overview

<figure><img src="https://477383351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfpdgT2BhOxa3Q6hjJqZ%2Fuploads%2Fy7iPsWS2NyVCjAeV4baR%2F67139757-ce18-425a-a058-22747bfc9c6b.jpg?alt=media&amp;token=d7b72487-0d67-469f-922e-5e460cbecbf3" alt=""><figcaption></figcaption></figure>

Replicated Gravity is a networked, server-authoritative custom-gravity solution for Unreal Engine characters, gravity-aware AI, Chaos wheeled vehicles, and physics-simulated objects.

It supports Directional, Planetary, Dynamic, and Zero Gravity through Blueprint and C++, with supported character movement prediction, replicated gravity state, Iris-aware replication support, and traditional replication paths.

{% embed url="<https://www.fab.com/listings/6189790c-1ad3-4e02-b977-83794d4d1e97>" %}

<p align="center">Get it on Fab</p>

{% embed url="<https://discord.gg/X9bJSMkDtW>" %}

<p align="center">Support Discord</p>

### Character gravity

`GravityMovementComponent` Extends Unreal's Character Movement Component pipeline with arbitrary-gravity behavior for compatible Character setups.

Features include:

* Gravity-relative walking, jumping, falling, and alignment.
* Supports owning-client prediction and server-authoritative gravity state.
* Replicated gravity direction, center, and plugin-aware falling state.
* Configurable transition rotation and smoothing.
* Moving-surface handling and optional simulated-proxy rotation correction.
* Optional gravity alignment during ordinary Flying.
* Optional per-character gravity magnitude override.
* Localized high-precision gravity calculations for large-world setups.
* Blueprint/C++ controls and gravity-related cosmetic events.

First-person and third-person character bases, controller support, and examples are included. Existing custom characters need the actual gravity movement component and compatible input, camera, and animation calculations; adding gravity does not automatically convert every third-party locomotion system.

### Gravity modes

#### Directional

Applies gravity along a configured world-space down vector. Suitable for standard downward gravity, sideways rooms, ceilings, artificial-gravity zones, and scripted direction changes.

Direction selection does not require Dynamic surface probes. Normal character collision and floor handling still apply.

#### Planetary

Pulls toward a configured world-space center, with radial alignment as the character moves around it.

Suitable for planets, asteroids, spherical environments, and point-centered gravity areas. This is a single-center gravity model, not automatic cylinder-axis gravity or an inverse-square planetary mass simulation.

#### Dynamic

Uses collision probes and support information to resolve gravity from nearby geometry. Suitable for connected floor, wall, ceiling, curved-surface, and ledge transitions.

Character Dynamic features include:

* Head, movement, and feet/support detection.
* Feet anchoring and contact confirmation.
* Continuous curved-surface support handling.
* Optional predictive wall and ledge queries.
* Configurable transition and enhanced surface smoothing.
* Configurable query channel and optional Pawn filtering.
* Directional, Planetary, and Zero Gravity fallback choices.
* Moving-surface tracking and transition recovery.

Dynamic Zero Gravity fallback temporarily floats when usable support is unavailable, continues surface searching, and resumes Dynamic Gravity after reacquisition.

#### Zero Gravity

Provides replicated weightless character movement with explicit entry/exit controls, configurable exit scale, and integration points for custom flying systems.

Normal Zero Gravity can steer and slow according to movement tuning. Optional Preserve Floating Velocity retains the current drift while movement input can still drive facing and animation without steering that velocity through the ordinary velocity calculation.

Explicit Zero Gravity pauses normal gravity surface searching; Dynamic's temporary Zero Gravity fallback keeps searching. Collisions and other gameplay forces remain separate from gravitational acceleration.

### Gravity Fields

`BP_GravityField` supplies overlap-based gravity configuration for supported actors.

Begin and End settings cover mode, direction, center, character rotation/tuning, Dynamic fallback, and character Zero Gravity options. Character Blueprint routing chooses the corresponding Apply node. Physics and vehicle assignment use their enabled overlap paths.

Field features include:

* Separate Begin/End character transitions.
* Separate Preserve Floating Velocity settings for entry and exit.
* Character Dynamic tuning and fallback selection.
* Opt-in physics-object and vehicle gravity.
* Separate physics and vehicle acceleration magnitudes.
* Physics Dynamic settings and receiver-managed handoffs.
* Optional captured physics gravity after leaving the volume.
* Replicated supported settings and live diagnostics.

The field's mode/direction/center values are shared, while actor-system activation and tuning controls are separate. Character End None keeps the current mode; it does not automatically restore an earlier field. Physics and vehicle exit behavior follow their own documented setup.

### Gravity-aware AI

The optional AI system uses `GravityAIController`, `GravityPathFollowingComponent`, and compatible characters under all four gravity modes.

Two primary Blueprint movement nodes cover the main workflows:

* `Move Along Gravity Path`: manual point arrays, authored path actors, or an optional graph-generated route to a destination.
* `Follow Gravity Target`: direct or graph-assisted following, with optional formations.

These workflows do not require Unreal's NavMesh or a user-authored Blueprint Tick loop.

#### Authored paths

`GravityPathActor` Provides spline-authored point sequences with One Shot, Closed Loop, and Reverse On End modes, per-point waits, reverse delay, acceptance radius, replicated settings, and debug drawing.

Manual world-space point arrays support runtime route generation. Authored movement still needs physically reachable segments; a spline is not an automatic jump or climbing implementation.

#### Following and formations

Following supports actors, the legacy player-index workflow, and formation/non-formation behavior. Front, Behind, Left, and Right formations assign automatic slots and expand into rows as needed.

Controls include stop/blocked distances, refresh/repath tuning, maximum follow range and out-of-range behavior, facing choices, desired speed, and catch-up settings.

Moving formation followers can match target velocity near their slots. Reactive avoidance includes world blockers, Pawn handling, follower passing, optional target yielding, and configurable Pawn/formation exclusions without disabling physical collision.

Path, navigation, follow-state, point, formation-slot, and recovery events support gameplay integration. Optional stuck detection supplies configurable route recovery actions.

### Gravity Navigation Graph

`GravityNavGraph` adds automatic surface-route generation and queries to the existing AI movement/following workflow.

#### World types

* **Local Surface (Non-Planet):** bounded collision scanning for suitable floors, walls, ceilings, and interior surfaces.
* **Spherical Planet:** surface routing around a center, with streamed detailed collision tiles and optional analytic fallback for long-distance routing.

#### Routing and authoring

* Collision-checked routes and replanning when routes become blocked.
* Configurable agent dimensions, node spacing, and surface-transition limits.
* Physical Surface preferences/exclusions and weighted route costs.
* Blocked or weighted modifier volumes.
* One-way/bidirectional authored links and agent-specific link filtering.
* Custom traversal hooks with capacity queuing and completion reporting.
* Blueprint path, projection, and random-reachable queries.
* Regional/tile rebuild requests for runtime geometry changes.
* Reachable-goal fallback, query limits, and request state/results.

#### Scaling controls

* Configurable planetary generation budgets and resident-tile limits.
* Shared runtime query scheduling through controller movement requests.
* Reusable bounded route caching.
* Optional planet actor/component selection for surface discovery.
* Multiple explicitly assigned graphs on the same planet.

Graphs follow surfaces, including for floating Zero-Gravity agents with a hover offset. They are not unrestricted volumetric flight planners. Spherical Planet navigation does not automatically build a multi-floor interior network inside buildings, and links do not implement jumps, ladders, elevators, or teleports without the corresponding gameplay logic.

Budgets and multiple graphs help control navigation work; total AI capacity also depends on movement, animation, collision, replication, rendering, and target hardware.

### Physics gravity

Simulated objects support Directional, Planetary, Dynamic, and Zero Gravity through the appropriate field/receiver setup.

Features include:

* Opt-in field overlap activation.
* Standalone startup gravity through `GravityReceiverComponent`, without requiring an initial field overlap.
* Physics Dynamic surface detection with adjustable probes, body-size adaptation, Pawn exclusion, and fallbacks.
* Receiver-managed source handoff and optional field capture after exit.
* Supported multi-body and skeletal/ragdoll management.
* Authoritative sleep-state handling and physics lifecycle tracking.
* Optional per-body ragdoll snapshot correction.
* Physics-object, source, and probe diagnostics.

Startup gravity is disabled by default. An eligible physics-enabled field consumes it on takeover; leaving the field does not automatically restart it. Receivers select one active physics field rather than adding all overlapping field accelerations together.

Gravity magnitude configures acceleration. Mass and damping remain properties of the simulated bodies. Vehicles already managed by the gravity vehicle component are protected against an additional receiver gravity/sleep path.

### Chaos vehicle gravity

`GravityVehicleMovementComponent` Extends Chaos wheeled vehicle movement with Directional, Planetary, Dynamic, and Zero Gravity.

Features include:

* Optional startup gravity and initial alignment.
* Field-driven or Blueprint/C++ gravity assignment.
* Dynamic bottom probes, contact confirmation, and live ledge support.
* Optional legacy line-trace detection.
* Directional/Planetary Dynamic fallback.
* Configurable alignment torque.
* Planetary and Dynamic ground hold.
* Gravity-aware sleep and wake thresholds.
* Optional Start Parked behavior with grounded/suspension settling checks.
* World-gravity suppression while custom control is active.
* Replicated supported gravity state.

The supplied vehicle/controller setup also includes input, camera, speed/gear HUD integration, and optional respawn behavior. Wheel, suspension, Physics Asset, collision, and project networking configuration remain part of the vehicle setup.

### Camera and controller support

`GravityController` Provides gravity-relative character control/view rotation, input mapping setup, and configurable camera pitch limits. It can coordinate with project PlayerCameraManager settings.

The first-person and third-person bases include their respective movement/input/camera integration. Custom camera, animation, and locomotion systems still need the appropriate gravity-relative calculations rather than world-up assumptions.

Vehicle controller/camera integration is provided separately through `GravityVehicleController`.

### Game Animation Sample integration

The optional integration tool adapts the known GASP CMC layouts for Unreal Engine 5.6, 5.7, and 5.8. Customers download/import the sample separately from Epic. The GASP Mover character is not supported.

Integration covers the supported samples:

* Character and Animation Blueprint parents.
* Gravity-relative movement, trajectory generation/collision, direction, and state calculations.
* Aim, falling/landing, foot placement, and Offset Root Bone handling.
* Gravity Root Alignment AnimGraph node.
* Traversal queries/transforms and supported replicated traversal execution.
* Player controller and version-specific camera handling.
* Gravity Boom Arm Camera Node for the supported UE 5.8 camera rig.

The tool detects supported layouts, backs up managed packages before modifying them, compiles/validates the known requirements, and saves the completed integration after its checks pass. It supports known managed repairs, separate validation, and backup restore.

An unchecked optional setup box can enable detected missing sample plugins in the selected project. Setup requires a restart before integration; startup and validation do not automatically enable sample plugins. Backup restore also requires restarting without saving the affected loaded assets.

The tool targets known paths/layouts, not every renamed or heavily customized Motion Matching project.

### Debug interface

The shared live interface has Character, Physics Object, Gravity Field, Vehicle, and Navigation Graph categories, with actor selection and expandable detail rows where available.

It displays applicable gravity state, sources, surface detection, physics information, navigation build/query/cache data, and active AI summaries. World drawings include authored paths, selected probes, graph bounds, and capped active-route overlays. Generated graph nodes/links are counted but are not drawn individually.

Default shortcuts are N for display visibility and F7 for menu interaction. Both can be remapped/unbound, or built-in shortcuts disabled, under **Project Settings → Plugins → Replicated Gravity Debug**.

Shortcuts do not consume gameplay key input. Menu interaction temporarily pauses movement/look until exited or hidden. Client-local graph information and replicated server summaries are labeled separately; server controller route overlays remain authority-only. The shared interface is disabled in Shipping builds.

### Multiplayer and replication

The plugin is designed around authoritative gravity decisions with supported replicated state and character movement prediction. Actor ownership, possession, relevancy, movement/physics configuration, and custom gameplay RPCs remain project responsibilities.

Iris is optional. Replicated Gravity includes Iris-aware replication code and traditional replication paths, without forcing the project's runtime choice. Compiling Iris support is distinct from configuring and verifying an Iris-enabled game NetDriver.

Use the intended replication configuration on server and clients, and test the features your game uses under its expected network conditions.

### Included examples

| Level                     | Focus                                                                                                             |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `Example_Lvl_ThirdPerson` | Third-person character gravity.                                                                                   |
| `Example_Lvl_FirstPerson` | First-person arbitrary-gravity movement/camera setup.                                                             |
| `Example_Lvl_Vehicle`     | Directional and planetary Chaos vehicle examples.                                                                 |
| `Example_Lvl_AI_Showcase` | Authored paths, following, formations, graph routing/costs, Dynamic transitions, and Zero Gravity demonstrations. |

Example Blueprints also provide character/controller, Gravity Field, physics, vehicle/UI, path, and AI references. The AI showcase includes hub travel, information screens, and supported blocker toggles.

### Requirements and compatibility

* Unreal Engine 5.6, 5.7, and 5.8, using the matching plugin build.
* Windows 64-bit.
* Blueprint and C++ support.
* Compatible Character setups using `GravityMovementComponent`.
* Chaos wheeled vehicle setups for the vehicle movement component.
* Preserved existing 2.8.3 APIs, serialized settings, and asset paths.

The delivered plugin currently requires **Enhanced Input, Chaos Vehicles, Pose Search, and Control Rig**, because its compiled classes and bundled content use them. Using the corresponding gameplay features remains optional; optional use does not mean those current plugin dependencies can all be disabled independently.

ACL and Datasmith Content are not required. Gameplay Cameras remains an optional plugin dependency, with additional project prerequisites required when using supported GASP content. Pose Search remains required by the compiled Motion Matching API even in projects that do not run GASP.

AI graphs, startup physics gravity, GASP integration/setup, ragdoll snapshots, and other opt-in features do not require replacing working character or AI systems. Select the features appropriate to the project and follow their dedicated setup guides.

### Getting started

Use the Quick Start Guide to explore the four example levels. Then choose the First-Person, Third-Person, Vehicle Template, Gravity-Aware AI, Physics Gravity, Gravity Field, or GASP integration guide for the system you are building.

The Directional, Planetary, Dynamic, Zero Gravity, Debug, and Iris guides provide their detailed controls and workflows.
