Changeset 10415 for code/branches/core7/src/orxonox/Scene.cc
- Timestamp:
- May 3, 2015, 12:19:49 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/orxonox/Scene.cc
r10347 r10415 67 67 this->debugDrawer_ = NULL; 68 68 this->soundReferenceDistance_ = 20.0; 69 this->bIsUpdatingPhysics_ = false; 69 70 70 71 if (GameMode::showsGraphics()) … … 266 267 // Note: 60 means that Bullet will do physics correctly down to 1 frames per seconds. 267 268 // Under that mark, the simulation will "loose time" and get unusable. 268 physicalWorld_->stepSimulation(dt, 60); 269 this->bIsUpdatingPhysics_ = true; 270 this->physicalWorld_->stepSimulation(dt, 60); 271 this->bIsUpdatingPhysics_ = false; 269 272 270 273 if (this->bDebugDrawPhysics_) 271 physicalWorld_->debugDrawWorld();274 this->physicalWorld_->debugDrawWorld(); 272 275 } 273 276 }
Note: See TracChangeset
for help on using the changeset viewer.