예제 #1
0
        /// <summary>
        /// Create an arcball camera that allows free orbit around a target point.
        /// </summary>
        public SampleArcBallCamera(SampleArcBallCameraMode controlMode)
        {
            //orientation quaternion assumes a Pi rotation so you're facing the "front"
            //of the model (looking down the +Z axis)
            orientation = Quaternion.CreateFromAxisAngle(Vector3.Up, MathHelper.Pi);

            mode = controlMode;
            inputDistanceRateValue = 4.0f;
            yaw   = MathHelper.Pi;
            pitch = 0;
        }
예제 #2
0
        /// <summary>
        /// Create an arcball camera that allows free orbit around a target point.
        /// </summary>
        public SampleArcBallCamera( SampleArcBallCameraMode controlMode )
        {
            //orientation quaternion assumes a Pi rotation so you're facing the "front"
            //of the model (looking down the +Z axis)
            orientation = Quaternion.CreateFromAxisAngle( Vector3.Up, MathHelper.Pi );

            mode = controlMode;
            inputDistanceRateValue = 4.0f;
            yaw = MathHelper.Pi;
            pitch = 0;
        }