WIP: Migrating to node3ds
This commit is contained in:
parent
7c761752c9
commit
5a0e3cc6b9
@ -18,6 +18,8 @@ var previous_server_pos: Vector3 = Vector3.ZERO
|
||||
|
||||
func _process(delta):
|
||||
# Record the latest server position with timestamp
|
||||
|
||||
global_rotation = owner_placeholder.global_rotation
|
||||
var server_pos = owner_placeholder.global_transform.origin
|
||||
pseudo_velocity = (server_pos - previous_position) / delta
|
||||
previous_position = server_pos # Store for next frame
|
||||
|
Loading…
Reference in New Issue
Block a user