mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10: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(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
|
||||||
|
Loading…
Reference in New Issue
Block a user