Fixed player jump

This commit is contained in:
Robin Engman 2014-02-26 10:05:18 +01:00 committed by Dander7BD
parent 5a74f5368f
commit 5675155be4
1 changed files with 6 additions and 6 deletions

View File

@ -294,11 +294,11 @@ bool Player::IsWalking()
} }
bool Player::IsJumping() bool Player::IsJumping()
{ {
return (this->rigidBody->GetLambda() < 1.0f); return (this->rigidBody->GetLambda() == 1.0f);
} }
bool Player::IsIdle() 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() void Player::Inactivate()