瀏覽代碼

FAKE Jump

legacy
Benjamin ‘Touky’ Huet touky 12 年之前
父節點
當前提交
9845122641
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      test/BtPhysTest.cpp

+ 2
- 1
test/BtPhysTest.cpp 查看文件

@@ -414,8 +414,9 @@ void BtPhysTest::TickGame(float seconds)

int HMovement = Input::GetButtonState(275 /*SDLK_RIGHT*/) - Input::GetButtonState(276 /*SDLK_LEFT*/);
int VMovement = Input::GetButtonState(273 /*SDLK_UP*/) - Input::GetButtonState(274 /*SDLK_DOWN*/);
int RMovement = Input::GetButtonState(280 /*SDLK_PAGEUP*/) - Input::GetButtonState(281 /*SDLK_PAGEDOWN*/);

Character->SetMovementForFrame(vec3((float)VMovement * seconds * 4.f, .0f, (float)HMovement * seconds * 4.f));
Character->SetMovementForFrame(vec3((float)VMovement * seconds * 4.f, (float)RMovement * seconds * 10.f, (float)HMovement * seconds * 4.f));
}
}



Loading…
取消
儲存