mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
zero gravity
This commit is contained in:
parent
f311ba7caa
commit
21799dc856
@ -169,7 +169,8 @@ void HandleJumping()
|
|||||||
jumpSpeed += Physics.gravity.y * Time.deltaTime;
|
jumpSpeed += Physics.gravity.y * Time.deltaTime;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
jumpSpeed = Physics.gravity.y * Time.deltaTime;
|
jumpSpeed = 0f;
|
||||||
|
//jumpSpeed = Physics.gravity.y * Time.deltaTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@ -184,7 +185,7 @@ void HandleTurning()
|
|||||||
// Headless client forced to ground
|
// Headless client forced to ground
|
||||||
void HandleJumping()
|
void HandleJumping()
|
||||||
{
|
{
|
||||||
jumpSpeed = Physics.gravity.y * Time.deltaTime;
|
jumpSpeed = 0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user