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