瀏覽代碼

test: refine physics timestep.

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
f3b61c9616
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      test/BtPhysTest.cpp

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

@@ -208,7 +208,9 @@ void BtPhysTest::TickGame(float seconds)
///step the simulation
if (m_bt_world)
{
m_bt_world->stepSimulation(seconds);
int steps = (int)(seconds / 0.005f);
for (int i = 0; i < steps; i++)
m_bt_world->stepSimulation(seconds / steps);
//optional but useful: debug drawing
//m_bt_world->debugDrawWorld();
}


Loading…
取消
儲存