add a place to keep track of the number of simulation steps where acceleration was close to gravity for a given Entity

This commit is contained in:
Seth Alves 2015-04-22 10:13:13 -07:00
parent 65825a4501
commit e334c456ea
2 changed files with 2 additions and 0 deletions

View file

@ -74,6 +74,7 @@ EntityItem::EntityItem(const EntityItemID& entityItemID) {
_created = UNKNOWN_CREATED_TIME;
_dirtyFlags = 0;
_changedOnServer = 0;
_accelerationNearlyGravityCount = 0;
_element = NULL;
_simulatorIDChangedTime = 0;
_shouldClaimSimulationOwnership = false;

View file

@ -343,6 +343,7 @@ protected:
glm::vec3 _velocity;
glm::vec3 _gravity;
glm::vec3 _acceleration;
quint8 _accelerationNearlyGravityCount;
float _damping;
float _lifetime;
QString _script;