Ejemplo n.º 1
0
 public LHGCamera(LHGCameraMode controlMode, Vector3 target, Vector3 position, float distance, float angle)
     : this(controlMode)
 {
     OrbitUp(angle);
     Target   = target;
     Position = position;
     Distance = distance;
 }
Ejemplo n.º 2
0
        public LHGCamera(LHGCameraMode 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;
            yaw         = MathHelper.Pi;
            pitch       = 0;
            scrollSpeed = 20.0f;  // 20.0f;  // 20.0f;  // 10.0f slow  20.0f normal 40.0f fast
        }