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