コード例 #1
0
ファイル: RoboticArm.cs プロジェクト: gr4viton/eye_out
        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];
        }