WIP: Some updates

This commit is contained in:
2025-02-09 18:00:14 +01:00
parent e922911f92
commit 275d697f60
2 changed files with 8 additions and 7 deletions

View File

@ -13,10 +13,11 @@ func _ready() -> void:
pass # Replace with function body.
func _process(delta: float) -> void:
func _physics_process(delta: float) -> void:
set_multiplayer_authority(multiplayer.get_unique_id())
if owner_placeholder:
global_transform = owner_placeholder.global_transform
#global_transform.origin = owner_placeholder.global_transform.origin
global_transform.origin = global_transform.origin.lerp(owner_placeholder.global_position, delta * 10)
global_rotation = owner_placeholder.global_rotation
# Set the owner placeholder, so the characters can send the requests to a node
# it depends on