Fixed player jump
This commit is contained in:
parent
2d9f89676a
commit
2f19390cd2
|
@ -306,11 +306,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