From 354fbbe2ba8093a4ebd146dfd787bf206913f814 Mon Sep 17 00:00:00 2001 From: Garrett Kaiser Date: Wed, 10 Dec 2025 15:15:25 -0800 Subject: [PATCH] Update GunThrown.cs GUN TURN IN AIR --- Assets/Scripts/GunThrown.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/GunThrown.cs b/Assets/Scripts/GunThrown.cs index 1e2f29f..7bb890e 100644 --- a/Assets/Scripts/GunThrown.cs +++ b/Assets/Scripts/GunThrown.cs @@ -26,7 +26,7 @@ public class GunThrown : MonoBehaviour { playerDistance = playerDistance * 1.2f; } - if (playerDistance > 16) + if (playerDistance > 17) { playerDistance = playerDistance / 1.4f; } @@ -41,7 +41,8 @@ public class GunThrown : MonoBehaviour void Update() { //transform.position = Vector3.MoveTowards(transform.position, TargetPosition, 10 * Time.deltaTime); - + targetRotation = Quaternion.Euler (-20f, currentRotation.y, currentRotation.z); + transform.rotation = Quaternion.RotateTowards(transform.rotation, targetRotation , -1); if (transform.position == TargetPosition) {