mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
PlayerMove jumpSpeed
This commit is contained in:
parent
d7d754884d
commit
f5a63cc910
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user