fixing typo

This commit is contained in:
Wayne Chen 2019-04-04 13:47:13 -07:00
parent ec4ad02192
commit 819bf9212c

View file

@ -3420,7 +3420,6 @@ glm::vec3 MyAvatar::calculateScaledDirection(){
break; break;
case LocomotionRelativeMovementMode::MOVEMENT_HAND_RELATIVE_LEVELED: case LocomotionRelativeMovementMode::MOVEMENT_HAND_RELATIVE_LEVELED:
forward = (handRotation * controllerForward); forward = (handRotation * controllerForward);
if (glm::length(forward) > EPSILON) {
auto transform = forward - (glm::dot(forward, Vectors::UNIT_Y) * Vectors::UNIT_Y); auto transform = forward - (glm::dot(forward, Vectors::UNIT_Y) * Vectors::UNIT_Y);
if (glm::length(transform) > EPSILON) { if (glm::length(transform) > EPSILON) {
forward = glm::normalize(transform); forward = glm::normalize(transform);