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