Examples of rotateAroundZ()


Examples of net.minecraft.src.Vec3.rotateAroundZ()

        float hydraZOffset = vrSettings.getPosTrackHydraOffsetZ();

        // The configured offset is for a 0,0,0 rotation head. Apply current head orientation to get final offset
        Vec3 correctionToCentreEyePosition = Vec3.createVectorHelper(hydraXOffset, hydraYOffset, hydraZOffset);

        correctionToCentreEyePosition.rotateAroundZ(rollHeadDegrees*PIOVER180);
        correctionToCentreEyePosition.rotateAroundX(pitchHeadDegrees*PIOVER180);
        correctionToCentreEyePosition.rotateAroundY(-yawHeadDegrees*PIOVER180);

        //Add the hydra position (in head tracker reference frame) to the camera offset
        //to get the camera position in head tracker reference frame
View Full Code Here

Examples of net.minecraft.src.Vec3.rotateAroundZ()

        if (resetOrigin)
        {
          //We compute the "ideal" neck model position, in head tracker reference frame
          Vec3 neckModelToCentreEyePosition = Vec3.createVectorHelper(0, vrSettings.neckBaseToEyeHeight, -vrSettings.eyeProtrusion);
          neckModelToCentreEyePosition.rotateAroundZ(rollHeadDegrees*PIOVER180);
          neckModelToCentreEyePosition.rotateAroundX(pitchHeadDegrees*PIOVER180);
          neckModelToCentreEyePosition.rotateAroundY(-yawHeadDegrees*PIOVER180);

          //The actual hydra position on the head is offset from the eye center by this amount
          Vec3 originOffset = correctionToCentreEyePosition.subtract(neckModelToCentreEyePosition);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.