mirror of
https://github.com/Steffo99/cinnos.git
synced 2024-11-21 23:54:20 +00:00
Add player facing rotation
This commit is contained in:
parent
3362ea7edf
commit
e7b1780936
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ func _physics_process(delta):
|
|||
|
||||
move_and_slide()
|
||||
|
||||
rotation.y = velocity.normalized().signed_angle_to(Vector3.FORWARD, Vector3.DOWN)
|
||||
|
||||
# Gestisci collisioni
|
||||
for collision_idx in range(get_slide_collision_count()):
|
||||
var collision = get_slide_collision(collision_idx)
|
||||
|
|
Loading…
Reference in a new issue