more CR feedback

This commit is contained in:
ZappoMan 2017-01-24 12:18:33 -08:00
parent cb812ca506
commit 44b8a57ed3
2 changed files with 8 additions and 8 deletions

View file

@ -193,15 +193,15 @@ bool AvatarData::faceTrackerInfoChangedSince(quint64 time) {
float AvatarData::getDistanceBasedMinRotationDOT(glm::vec3 viewerPosition) {
auto distance = glm::distance(_globalPosition, viewerPosition);
float result = ROTATION_179D_DOT; // assume worst
float result = ROTATION_CHANGE_179D; // assume worst
if (distance < AVATAR_DISTANCE_LEVEL_1) {
result = AVATAR_MIN_ROTATION_DOT;
} else if (distance < AVATAR_DISTANCE_LEVEL_2) {
result = ROTATION_15D_DOT;
result = ROTATION_CHANGE_15D;
} else if (distance < AVATAR_DISTANCE_LEVEL_3) {
result = ROTATION_45D_DOT;
result = ROTATION_CHANGE_45D;
} else if (distance < AVATAR_DISTANCE_LEVEL_4) {
result = ROTATION_90D_DOT;
result = ROTATION_CHANGE_90D;
}
return result;
}

View file

@ -256,10 +256,10 @@ const float AVATAR_SEND_FULL_UPDATE_RATIO = 0.02f;
const float AVATAR_MIN_ROTATION_DOT = 0.9999999f;
const float AVATAR_MIN_TRANSLATION = 0.0001f;
const float ROTATION_15D_DOT = 0.9914449f;
const float ROTATION_45D_DOT = 0.9238795f;
const float ROTATION_90D_DOT = 0.7071068f;
const float ROTATION_179D_DOT = 0.0087266f;
const float ROTATION_CHANGE_15D = 0.9914449f;
const float ROTATION_CHANGE_45D = 0.9238795f;
const float ROTATION_CHANGE_90D = 0.7071068f;
const float ROTATION_CHANGE_179D = 0.0087266f;
const float AVATAR_DISTANCE_LEVEL_1 = 10.0f;
const float AVATAR_DISTANCE_LEVEL_2 = 100.0f;