Ship mostly works #10

Merged
chrisbell merged 60 commits from feature/ship-syncing into develop 2024-12-29 04:35:51 +00:00
Showing only changes of commit 8b824d49da - Show all commits

View File

@ -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()