12 #ifndef hifi_SimpleEntitySimulation_h
13 #define hifi_SimpleEntitySimulation_h
15 #include "EntitySimulation.h"
18 using SimpleEntitySimulationPointer = std::shared_ptr<SimpleEntitySimulation>;
28 void clearOwnership(
const QUuid& ownerID);
29 void clearEntities()
override;
30 void updateEntities()
override;
33 void addEntityToInternalLists(EntityItemPointer entity)
override;
34 void removeEntityFromInternalLists(EntityItemPointer entity)
override;
35 void processChangedEntity(
const EntityItemPointer& entity)
override;
37 void sortEntitiesThatMoved()
override;
39 void expireStaleOwnerships(uint64_t now);
40 void stopOwnerlessEntities(uint64_t now);
42 SetOfEntities _entitiesWithSimulationOwner;
43 SetOfEntities _entitiesThatNeedSimulationOwner;
44 uint64_t _nextOwnerlessExpiry { 0 };
45 uint64_t _nextStaleOwnershipExpiry { (uint64_t)(-1) };
provides simple velocity + gravity extrapolation of EntityItem's
Definition: SimpleEntitySimulation.h:23