Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actors with ReplicateMovement enabled and non-replicated root components don't get transform updates. #2997

Open
oblm opened this issue Mar 31, 2021 · 0 comments

Comments

@oblm
Copy link
Contributor

oblm commented Mar 31, 2021

Description

Actors with ReplicateMovement enabled and non-replicated root components don't get transform updates.

Expected behavior

Actors with ReplicateMovement enabled and non-replicated root components don't get transform updates. Indeed, they do if you toggle from Spatial Networking to Native Unreal Networking.

Current behavior

  • Given you have an Actor set to ReplicateMovement and the RootComponent (Main Chassis) is set to not Replicate
  • When the RootComponent isn't set to be simulating, UPrimitiveComponent::SyncComponentToRBPhysics() will do nothing (specifically, it will early out), so all of the work that FPhysicsReplication does will not pass through the RootComponent, meaning these commands never reach the Actor.

Possible solution

You can workaround this by overloading AActor::PostNetReceivePhysicState in order to manually handle specific cases. A more robust solution will need more investigation.

Environment

UnrealGDK: 0.11.0
UnrealEngine: 4.25-SpatialOSUnrealGDK

Internal ticket

UNR-4485

@oblm oblm added this to Unreal Parity Issues in Known Issues Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Known Issues
Unreal Parity Issues
Development

No branches or pull requests

1 participant