Changeset 1573


Ignore:
Timestamp:
Jul 5, 2012, 8:28:10 AM (7 years ago)
Author:
sam
Message:

test: refine physics timestep.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/BtPhysTest.cpp

    r1571 r1573  
    209209        if (m_bt_world)
    210210        {
    211                 m_bt_world->stepSimulation(seconds);
     211                int steps = (int)(seconds / 0.005f);
     212                for (int i = 0; i < steps; i++)
     213                        m_bt_world->stepSimulation(seconds / steps);
    212214                //optional but useful: debug drawing
    213215                //m_bt_world->debugDrawWorld();
Note: See TracChangeset for help on using the changeset viewer.