GL - added jump
This commit is contained in:
parent
03385f486b
commit
1f28c05983
|
@ -146,7 +146,8 @@ void Player::Rotate(const Oyster::Math3D::Float4 lookDir)
|
||||||
|
|
||||||
void Player::Jump()
|
void Player::Jump()
|
||||||
{
|
{
|
||||||
|
Oyster::Math::Float3 up = currPhysicsState.GetOrientation().v[1];
|
||||||
|
newPhysicsState.ApplyLinearImpulse(up * 2000 * this->gameInstance->GetFrameTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Player::IsWalking()
|
bool Player::IsWalking()
|
||||||
|
|
Loading…
Reference in New Issue