From f5a63cc910999dbf77f062aab2535f183af4cac1 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Thu, 26 Jan 2023 06:50:25 -0500 Subject: [PATCH] PlayerMove jumpSpeed --- 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 3cda5348e..26cd4a4d2 100644 --- a/Assets/Mirror/Examples/TestNT/Scripts/PlayerMove.cs +++ b/Assets/Mirror/Examples/TestNT/Scripts/PlayerMove.cs @@ -6,7 +6,7 @@ namespace TestNT { [RequireComponent(typeof(Rigidbody))] [RequireComponent(typeof(CharacterController))] - [RequireComponent(typeof(CapsuleCollider))] + //[RequireComponent(typeof(CapsuleCollider))] [RequireComponent(typeof(NTReliableExt))] public class PlayerMove : NetworkBehaviour { @@ -254,7 +254,8 @@ void HandleTurning() // Headless client forced to ground void HandleJumping() { - jumpSpeed = Physics.gravity.y * Time.deltaTime; + jumpSpeed = -9.81f * Time.deltaTime; + // jumpSpeed = Physics.gravity.y * Time.deltaTime; } #endif