Merge pull request #26 from wayne-chen/locomotionCRFeedback

fixing typo
This commit is contained in:
Wayne Chen 2019-04-04 13:47:59 -07:00 committed by GitHub
commit 56f0ef80ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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