1
Fork 0
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:
Lorenzo Rossi 2023-11-25 15:02:01 +01:00
parent 3362ea7edf
commit e7b1780936
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 43733C54D7B7BD75

View file

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