GL - added jump

This commit is contained in:
lindaandersson 2014-02-03 16:30:47 +01:00
parent 03385f486b
commit 1f28c05983
1 changed files with 2 additions and 1 deletions

View File

@ -146,7 +146,8 @@ void Player::Rotate(const Oyster::Math3D::Float4 lookDir)
void Player::Jump()
{
Oyster::Math::Float3 up = currPhysicsState.GetOrientation().v[1];
newPhysicsState.ApplyLinearImpulse(up * 2000 * this->gameInstance->GetFrameTime());
}
bool Player::IsWalking()