Fixed player jump
This commit is contained in:
parent
5a74f5368f
commit
5675155be4
|
@ -294,11 +294,11 @@ bool Player::IsWalking()
|
|||
}
|
||||
bool Player::IsJumping()
|
||||
{
|
||||
return (this->rigidBody->GetLambda() < 1.0f);
|
||||
return (this->rigidBody->GetLambda() == 1.0f);
|
||||
}
|
||||
bool Player::IsIdle()
|
||||
{
|
||||
return (this->rigidBody->GetLambda() < 1.0f && this->rigidBody->GetLinearVelocity().GetMagnitude() < 0.0001f);
|
||||
return (this->rigidBody->GetLambda() == 1.0f && this->rigidBody->GetLinearVelocity().GetMagnitude() < 0.0001f);
|
||||
}
|
||||
|
||||
void Player::Inactivate()
|
||||
|
|
Loading…
Reference in New Issue