Changeset 2306 for code/branches/physics/src/orxonox/objects/Scene.cc
- Timestamp:
- Dec 2, 2008, 4:59:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/Scene.cc
r2304 r2306 172 172 void Scene::tick(float dt) 173 173 { 174 // TODO: This is not stable! If physics cannot be calculated real time anymore, 175 // framerate will drop exponentially. 174 176 if (physicalWorld_) 175 physicalWorld_->stepSimulation(dt,(int)(dt/0.0166666f ));177 physicalWorld_->stepSimulation(dt,(int)(dt/0.0166666f + 1.0f)); 176 178 } 177 179
Note: See TracChangeset
for help on using the changeset viewer.