- Edited
hi guys..
i have two characters that look each other. i use
look_at(enemy.global_position)
or
self.rotate((enemy.global_position - self.global_position()).angle())
in fixed_process function and they work just fine in offline mode, but in multiplayer, rotation property does not seem to be sent right (because in offline mode there is no weird movements). i use this code for sending the data:
rpc_unreliable("position_motion_rotation", position, motion, rotation)
and this function:
slave func position_motion_rotation(p_pos, p_mot, p_rot):
position = p_pos
motion = p_mot
rotation = p_rot
what am i doing wrong? thank you for your time