Ejemplo n.º 1
0
 public ArcBallCamera(ArcBallCameraMode controlMode)
 {
     orientation            = Quaternion.CreateFromAxisAngle(Vector3.Up, MathHelper.Pi);
     mode                   = controlMode;
     inputDistanceRateValue = 4.0f;
     yaw   = MathHelper.Pi;
     pitch = 0;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Create an arcball camera that allows free orbit around a target point.
        /// </summary>
        public ArcBallCamera(ArcBallCameraMode 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;
            InputDistanceRate = 4.0f;
            yaw   = MathHelper.Pi;
            pitch = 0;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Create an arcball camera that allows free orbit around a target point.
        /// </summary>
        public ArcBallCamera(ArcBallCameraMode 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;
            FieldOfView = MathHelper.ToRadians(45.0f);
        }