Networked PhysicsResimulation (AActor inputs not reaching server (UE 5.7))

Hi, I’m trying to use Resimulation with UNetworkPhysicsComponent for a ball in a multiplayer game, and the client’s inputs never reach the server. Shots taken by the listen-server host work correctly.

I tested it with UE 5.7. I ran listen server and 1 client with PIE with no network emulation. I didn’t enable Iris because it caused some issues. But I tried it with Iris on. I got the same result.
When the player shoots the ball on the server, the ball seems to move correctly. But when the player shoots the ball on the client, the ball doesn’t move at all. It seems like the server isn’t receiving any input from the client.

  • In Project Settings

    1. Enable Physics Prediction = on

    2_ Tick Physics Async = on (fixed step 0.0166667)

The ball is an AActor (not a pawn, not possessed). It’s owned by the player’s character, which is possessed by the PlayerController.
The ball’s root component is a sphere and the sphere settings are Replicates = true, Replicate Movement = true, PhysicsReplicationMode = Resimulation, Replicate Physics to Autonomous Proxy = on.

  • Implementation (based on the Pawn tutorial)

    1. UNetworkPhysicsComponent created in the constructor (SetNetAddressable, SetIsReplicated(true))

    2. In PostInitializeComponents: CreateAndRegisterSimCallbackObject_External(), set PhysicsObject from the root, then CreateDataHistory<FNetInputBall, FNetStateBall>(BallAsync)

    3. FBallAsync : TSimCallbackObject<…, Presimulate | Rewind>, TNetworkPhysicsInputState_Internal<FNetInputBall, FNetStateBall>

    4. The input is a one-shot event: an increasing ShotId plus launch velocity/spin. OnPreSimulate_Internal applies the launch once when ShotId != AppliedShotId. AppliedShotId is part of the networked state.

    5. On the owning client, SetIsRelayingLocalInputs(true) is called after the ball is initialized. The game thread only writes the shot into the AsyncInput on the owning client.

  • What happens when the client shoots

    1. Client: the ball is controlled locally (relay on, owner = the client’s character), and OnPreSimulate_Internal launches it.

    2. Server: ApplyInput_Internal never receives the new ShotId. The server’s ball never launches.

    3. IsNetworkPhysicsTickOffsetAssigned() returns false on both client and server, even after waiting several seconds after connecting.

    4. The client keeps resimulating: ApplyState_Internal restores AppliedShotId 1 → 0 from the server’s state, and the ball never really moves.

So these are questions.

  1. Is input relaying on a non-possessed AActor supported with legacy replication in 5.7, or does it require Iris or a possessed pawn?
  2. Should IsNetworkPhysicsTickOffsetAssigned() become true for a relayed actor? If not, what’s the right way to check that the physics frame sync is working?
  3. Is there anything else that needs to be set up for a relayed actor’s inputs to be sent to the server? For example, ownership timing, or when SetIsRelayingLocalInputs must be called.
  4. Is a one-shot event (a launch) through the networked input the recommended approach, or should it be handled differently (for example, the 5.8 Actions API)?

Thanks!