How to get UPhysicsConstraintComponent working over the network

Hi All,
I’m helping out on a project to improve their networking. In the game they have some doors the player can open. The animation for the opening and closing of the door makes use of a UPhysicsConstraintComponent to have the door swing around an edge of its axis. The component is only enabled when the door opens/closes and is disabled at other times.
This component doesn’t seem to support serialization over the network (there are no replicated properties) so I can’t simply call SetIsReplicated(true).
Ideally, I’d like the animation triggered on the server then proxied on the client. I’d hoped calling SetReplicatedMovement(true) on the actor would help, but it doesn’t look like that works with the constraint either.
I wondered if someone could let me know the best approach to get this working over the network correctly? Or perhaps theirs an alternative, recommended approach for such behaviour?

1 Like