I have a simple rigid body cube and I want to sync its position and rotation between clients and server in the network. What is the correct way?
I've attached this script to all my boxes (rigid bodies):
rpc_unreliable("update_pos_rot", translation, rotation)
puppet func update_pos_rot(pos, rot):
translation = pos
rotation = rot
It kind of works but I have this error in the console:
ERROR: _process_rpc: Condition ` !_can_call_mode(p_node, rpc_mode, p_from) ` is true.