mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-19 12:02:57 +02:00
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:
parent
65825a4501
commit
e334c456ea
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -343,6 +343,7 @@ protected:
|
|||
glm::vec3 _velocity;
|
||||
glm::vec3 _gravity;
|
||||
glm::vec3 _acceleration;
|
||||
quint8 _accelerationNearlyGravityCount;
|
||||
float _damping;
|
||||
float _lifetime;
|
||||
QString _script;
|
||||
|
|
Loading…
Reference in a new issue