예제 #1
0
        public void CONV_hmdRotationToPartRotation(Matrix playerRotation)
        {
            // converts the head orientation to individual motor angles (Yaw, Pitch, Roll)
            // later inverse kinematics
            Vector3 values = PostureF.CONV_RotationMatrix_2_YawPitchRollVector3(playerRotation);

            YawRad   = -values[0];
            PitchRad = -values[1];
            RollRad  = -values[2];
        }
예제 #2
0
        public Player()
        {
            body = new PostureF();
            //{
            //    Rotation = Matrix.RotationYawPitchRoll((float)Math.PI, 0, 0)
            //};
            body.Rotation = Matrix.RotationYawPitchRoll(0.0001f, 0, 0);

            hmd   = new PostureF();
            scout = new PostureF();
            //hmdYawPitchRoll = new float[3];
        }