History

remove debug option for disabling physics updates

Andrew Meadows committed 10 years ago

Commit ab6367f1 parent 2c886656 files · +14 −62Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 6 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+5−14
@@ -167,8 +167,8 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, EntityItemProperties proper · 166 unmodified lines
167 if (hasTerseUpdateChanges) {167 if (hasTerseUpdateChanges) {
168 entity->getAllTerseUpdateProperties(properties);168 entity->getAllTerseUpdateProperties(properties);
169 }169 }
170 // TODO: if we knew that ONLY TerseUpdate properties have changed in properties AND the object 170 // TODO: if we knew that ONLY TerseUpdate properties have changed in properties AND the object
171 // is dynamic AND it is active in the physics simulation then we could chose to NOT queue an update 171 // is dynamic AND it is active in the physics simulation then we could chose to NOT queue an update
172 // and instead let the physics simulation decide when to send a terse update. This would remove172 // and instead let the physics simulation decide when to send a terse update. This would remove
173 // the "slide-no-rotate" glitch (and typical a double-update) that we see during the "poke rolling173 // the "slide-no-rotate" glitch (and typical a double-update) that we see during the "poke rolling
174 // balls" test. However, even if we solve this problem we still need to provide a "slerp the visible174 // balls" test. However, even if we solve this problem we still need to provide a "slerp the visible
@@ -333,15 +333,6 @@ bool EntityScriptingInterface::getDrawZoneBoundaries() const { · 158 unmodified lines
333 return ZoneEntityItem::getDrawZoneBoundaries();333 return ZoneEntityItem::getDrawZoneBoundaries();
334}334}
335 335
336void EntityScriptingInterface::setSendPhysicsUpdates(bool value) {
337 EntityItem::setSendPhysicsUpdates(value);
338}
339
340bool EntityScriptingInterface::getSendPhysicsUpdates() const {
341 return EntityItem::getSendPhysicsUpdates();
342}
343
344
345RayToEntityIntersectionResult::RayToEntityIntersectionResult() :336RayToEntityIntersectionResult::RayToEntityIntersectionResult() :
346 intersects(false),337 intersects(false),
347 accurate(true), // assume it's accurate338 accurate(true), // assume it's accurate
@@ -548,16 +539,16 @@ bool EntityScriptingInterface::appendPoint(QUuid entityID, const glm::vec3& poin · 200 unmodified lines
548 if (!entity) {539 if (!entity) {
549 qCDebug(entities) << "EntityScriptingInterface::setPoints no entity with ID" << entityID;540 qCDebug(entities) << "EntityScriptingInterface::setPoints no entity with ID" << entityID;
550 }541 }
551 542
552 EntityTypes::EntityType entityType = entity->getType();543 EntityTypes::EntityType entityType = entity->getType();
553 544
554 if (entityType == EntityTypes::Line) {545 if (entityType == EntityTypes::Line) {
555 return setPoints(entityID, [point](LineEntityItem& lineEntity) -> bool546 return setPoints(entityID, [point](LineEntityItem& lineEntity) -> bool
556 {547 {
557 return (LineEntityItem*)lineEntity.appendPoint(point);548 return (LineEntityItem*)lineEntity.appendPoint(point);
558 });549 });
559 }550 }
560 551
561 return false;552 return false;
562}553}
563 554