Fixed player jump

This commit is contained in:
Robin Engman 2014-02-26 10:05:18 +01:00
parent 2d9f89676a
commit 2f19390cd2
1 changed files with 6 additions and 6 deletions

View File

@ -306,11 +306,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()