Ship mostly works #10
@ -217,7 +217,7 @@ func _handle_rotation_correction(corrected_rotation: Vector3):
|
||||
var received_rotation = Quaternion.from_euler(corrected_rotation)
|
||||
var delta_rot = received_rotation * global_rotation.inverse()
|
||||
predicted_rotation = received_rotation
|
||||
angular_velocity = delta_rot.get_euler() / delta_time
|
||||
angular_velocity = Quaternion(delta_rot).get_euler() / delta_time
|
||||
|
||||
# Apply server rotation directly
|
||||
global_rotation = Quaternion.from_euler(corrected_rotation).get_euler()
|
||||
|
Loading…
Reference in New Issue
Block a user