Hi,
I was looking into this, but was unable to hit your exact case. InitBody should be getting called after properties in the editor have been properly set (i.e. bEnablePhysicsOnDedicatedServer)
Is the issue that you’re setting this flag in code, but at this point it’s too late and InitBody has already been called?
I agree that this is not ideal. I think the best solution would be to add a function to call which would ensure the BodyInstance is modified. As it’s setup right now bEnablePhysicsOnDedicatedServer is setup as more of a read only data that should not be modified at runtime.
I’m a bit hesitant about introducing this new function though as I’m not sure what other bugs this would expose. As it is right now the code is not expecting this to be changed at runtime. Can you think of a reason why you’d want to turn this on and off only on a dedicated server? In general we either want it on or not.