From 973ee34850bc3fed17ea3cf46a8084b23702adc6 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Thu, 26 Jan 2023 11:34:14 -0500 Subject: [PATCH] restored Gravity --- Assets/Mirror/Examples/TestNT/Scripts/PlayerMove.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Examples/TestNT/Scripts/PlayerMove.cs b/Assets/Mirror/Examples/TestNT/Scripts/PlayerMove.cs index a8331c57b..cd7ef7ff7 100644 --- a/Assets/Mirror/Examples/TestNT/Scripts/PlayerMove.cs +++ b/Assets/Mirror/Examples/TestNT/Scripts/PlayerMove.cs @@ -169,8 +169,7 @@ void HandleJumping() jumpSpeed += Physics.gravity.y * Time.deltaTime; } else - jumpSpeed = 0f; - //jumpSpeed = Physics.gravity.y * Time.deltaTime; + jumpSpeed = Physics.gravity.y * Time.deltaTime; } #else @@ -185,7 +184,7 @@ void HandleTurning() // Headless client forced to ground void HandleJumping() { - jumpSpeed = 0f; + jumpSpeed = Physics.gravity.y * Time.deltaTime; } #endif