- Edited
Trying my hand at networking and am having some trouble getting rigid bodies synced across clients The code I have so far is:
extends RigidBody
func _integrate_forces(state):
if get_tree().is_network_server():
rpc_unreliable("update_pos_rot", translation, rotation)
puppet func update_pos_rot(pos, rot):
translation = pos
rotation = rot
Now this kinda works, the position and collisions are synced pretty well but the host has to interact with the rigid body first for some reason as if he does not, the client's rigid body will act as if it is not being synced at all. Probably just some lack of understanding on my part but any help would be greatly appreciated.