mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 20:06:48 +02:00
disable hack to notice that the server is sending the same thing repeatedly
This commit is contained in:
parent
1b84be6e10
commit
b40e78311b
1 changed files with 6 additions and 6 deletions
|
@ -1098,7 +1098,7 @@ void EntityItem::updatePositionInDomainUnits(const glm::vec3& value) {
|
|||
}
|
||||
|
||||
void EntityItem::updatePosition(const glm::vec3& value) {
|
||||
if (value == _previousPositionFromServer) {
|
||||
if (false && value == _previousPositionFromServer) {
|
||||
_position = value;
|
||||
} else if (glm::distance(_position, value) > MIN_POSITION_DELTA) {
|
||||
_position = value;
|
||||
|
@ -1120,7 +1120,7 @@ void EntityItem::updateDimensions(const glm::vec3& value) {
|
|||
}
|
||||
|
||||
void EntityItem::updateRotation(const glm::quat& rotation) {
|
||||
if (rotation == _previousRotationFromServer) {
|
||||
if (false && rotation == _previousRotationFromServer) {
|
||||
_rotation = rotation;
|
||||
} else if (glm::abs(glm::dot(_rotation, rotation)) < MIN_ALIGNMENT_DOT) {
|
||||
_rotation = rotation;
|
||||
|
@ -1159,7 +1159,7 @@ void EntityItem::updateVelocityInDomainUnits(const glm::vec3& value) {
|
|||
}
|
||||
|
||||
void EntityItem::updateVelocity(const glm::vec3& value) {
|
||||
if (value == _previousVelocityFromServer) {
|
||||
if (false && value == _previousVelocityFromServer) {
|
||||
if (glm::length(value) < MIN_VELOCITY_DELTA) {
|
||||
_velocity = ENTITY_ITEM_ZERO_VEC3;
|
||||
} else {
|
||||
|
@ -1189,7 +1189,7 @@ void EntityItem::updateGravityInDomainUnits(const glm::vec3& value) {
|
|||
}
|
||||
|
||||
void EntityItem::updateGravity(const glm::vec3& value) {
|
||||
if (value == _previousGravityFromServer) {
|
||||
if (false && value == _previousGravityFromServer) {
|
||||
_gravity = value;
|
||||
} else if (glm::distance(_gravity, value) > MIN_GRAVITY_DELTA) {
|
||||
_gravity = value;
|
||||
|
@ -1199,7 +1199,7 @@ void EntityItem::updateGravity(const glm::vec3& value) {
|
|||
}
|
||||
|
||||
void EntityItem::updateAcceleration(const glm::vec3& value) {
|
||||
if (value == _previousAccelerationFromServer) {
|
||||
if (false && value == _previousAccelerationFromServer) {
|
||||
_acceleration = value;
|
||||
} else if (glm::distance(_acceleration, value) > MIN_ACCELERATION_DELTA) {
|
||||
_acceleration = value;
|
||||
|
@ -1209,7 +1209,7 @@ void EntityItem::updateAcceleration(const glm::vec3& value) {
|
|||
}
|
||||
|
||||
void EntityItem::updateAngularVelocity(const glm::vec3& value) {
|
||||
if (value == _previousAngularVelocityFromServer) {
|
||||
if (false && value == _previousAngularVelocityFromServer) {
|
||||
if (glm::length(value) < MIN_SPIN_DELTA) {
|
||||
_angularVelocity = ENTITY_ITEM_ZERO_VEC3;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue