# Networking & Replication Notes

### Networking & Replication Notes

#### Replication overview (v1.1)

Zones are replication-ready:

* `AGravityZoneBase` replicates:
  * `Settings` (mode, strength, point/direction, falloff)
  * `Priority`
  * Tag/Class filter settings
  * `ZoneGuid` (stable ID)
* Shape parameters replicate:
  * `AGravityZoneBox::BoxExtent` (ReplicatedUsing)
  * `AGravityZoneSphere::Radius` (ReplicatedUsing)

#### Deterministic zone selection (important)

If multiple zones overlap the same point:

* Highest `Priority` wins
* If `Priority` ties, the plugin uses `ZoneGuid` as a deterministic tie-break\
  → prevents client/server choosing different zones.

#### Physics object consistency (recommended)

For replicated physics actors, the plugin provides a helper mode via `CustomGravityComponent`:

`NetworkPhysicsMode`

* **Off**: do nothing (advanced users)
* **Warn**: detects common “physics drift” setups and prints guidance
* **Auto**: server-authoritative fix:
  * server: ensure Replicates + ReplicateMovement
  * clients: disable SimulatePhysics to prevent divergence

> This is a practical approach: physics replication in UE is sensitive; the plugin helps you avoid the “starts the same, drifts later” issue.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://realms-roar.gitbook.io/gravity-transform-custom-gravity-system/getting-started/whats-new-v1.1/networking-and-replication-notes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
