mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00: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;
|
||||
}
|
||||
else
|
||||
jumpSpeed = Physics.gravity.y * Time.deltaTime;
|
||||
jumpSpeed = 0f;
|
||||
//jumpSpeed = Physics.gravity.y * Time.deltaTime;
|
||||
}
|
||||
|
||||
#else
|
||||
@ -184,7 +185,7 @@ void HandleTurning()
|
||||
// Headless client forced to ground
|
||||
void HandleJumping()
|
||||
{
|
||||
jumpSpeed = Physics.gravity.y * Time.deltaTime;
|
||||
jumpSpeed = 0f;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user