Actually lerping the positions
This commit is contained in:
parent
e43e0cc890
commit
dc635482c8
@ -139,8 +139,8 @@ func _send_ship_sync():
|
|||||||
|
|
||||||
|
|
||||||
func _handle_ship_sync_position(pos: Vector3):
|
func _handle_ship_sync_position(pos: Vector3):
|
||||||
lerp(global_position, pos, 0.1 * delta_time)
|
global_position = lerp(global_position, pos, 0.1 * delta_time)
|
||||||
|
|
||||||
|
|
||||||
func _handle_ship_sync_rotation(rot: Vector3):
|
func _handle_ship_sync_rotation(rot: Vector3):
|
||||||
lerp(global_rotation, rot, 0.1 * delta_time)
|
global_rotation = lerp(global_rotation, rot, 0.1 * delta_time)
|
||||||
|
Loading…
Reference in New Issue
Block a user