PlayerMove jumpSpeed

This commit is contained in:
MrGadget1024 2023-01-26 06:50:25 -05:00
parent d7d754884d
commit f5a63cc910

View File

@ -6,7 +6,7 @@ namespace TestNT
{ {
[RequireComponent(typeof(Rigidbody))] [RequireComponent(typeof(Rigidbody))]
[RequireComponent(typeof(CharacterController))] [RequireComponent(typeof(CharacterController))]
[RequireComponent(typeof(CapsuleCollider))] //[RequireComponent(typeof(CapsuleCollider))]
[RequireComponent(typeof(NTReliableExt))] [RequireComponent(typeof(NTReliableExt))]
public class PlayerMove : NetworkBehaviour public class PlayerMove : NetworkBehaviour
{ {
@ -254,7 +254,8 @@ void HandleTurning()
// Headless client forced to ground // Headless client forced to ground
void HandleJumping() void HandleJumping()
{ {
jumpSpeed = Physics.gravity.y * Time.deltaTime; jumpSpeed = -9.81f * Time.deltaTime;
// jumpSpeed = Physics.gravity.y * Time.deltaTime;
} }
#endif #endif