Esempio n. 1
0
        public BumperCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation, FGetUp getUpVector)
            : base(ref properties, getPosition, getOrientation)
        {
            DrawOwnShip = false;

            getUp = getUpVector;
        }
Esempio n. 2
0
        public BumperCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation, FGetUp getUpVector)
            : base(ref properties, getPosition, getOrientation)
        {
            DrawOwnShip = false;

            getUp = getUpVector;
        }
Esempio n. 3
0
 public VisCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation, FGetUp getUpVector, float stopHeightOffset)
     : base(ref properties, getPosition, getOrientation)
 {
     this.baseFieldOfView = MathHelper.PiOver4;
     getUp = getUpVector;
     this.relativeFocalPoint = new Vector3(0.0f, 2.0f+stopHeightOffset, -20.0f);
     this.relativePosition = new Vector3(0.0f, 4.0f, 16.0f);
     oldRot = Matrix.CreateFromQuaternion(getOrientation());
 }
Esempio n. 4
0
 public ICameraType(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation)
 {
     View                = Matrix.CreateLookAt(new Vector3(0, 6, 60), Vector3.Zero, camLastUp);
     Projection          = Matrix.CreatePerspectiveFieldOfView(fieldOfView, properties.Viewport.AspectRatio, 1, farClipDistance);
     this.properties     = properties;
     this.getPosition    = getPosition;
     this.getOrientation = getOrientation;
     DrawOwnShip         = true;
 }
Esempio n. 5
0
 public VisCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation, FGetUp getUpVector, float stopHeightOffset)
     : base(ref properties, getPosition, getOrientation)
 {
     this.baseFieldOfView = MathHelper.PiOver4;
     getUp = getUpVector;
     this.relativeFocalPoint = new Vector3(0.0f, 2.0f + stopHeightOffset, -20.0f);
     this.relativePosition   = new Vector3(0.0f, 4.0f, 16.0f);
     oldRot = Matrix.CreateFromQuaternion(getOrientation());
 }
Esempio n. 6
0
 public ChaseCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation, FGetUp getUpVector, FGetSpeed getSpeed, Vector3 relativePosition, Vector3 relativeFocalPoint, float BaseFieldOfView)
     : base(ref properties, getPosition, getOrientation)
 {
     this.baseFieldOfView = BaseFieldOfView;
     getUp = getUpVector;
     this.getSpeed = getSpeed;
     this.relativeFocalPoint = relativeFocalPoint;
     this.relativePosition = relativePosition;
     oldRot = Matrix.CreateFromQuaternion(getOrientation());
 }
Esempio n. 7
0
 public ChaseCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation, FGetUp getUpVector, FGetSpeed getSpeed, Vector3 relativePosition, Vector3 relativeFocalPoint, float BaseFieldOfView)
     : base(ref properties, getPosition, getOrientation)
 {
     this.baseFieldOfView = BaseFieldOfView;
     getUp                   = getUpVector;
     this.getSpeed           = getSpeed;
     this.relativeFocalPoint = relativeFocalPoint;
     this.relativePosition   = relativePosition;
     oldRot                  = Matrix.CreateFromQuaternion(getOrientation());
 }
Esempio n. 8
0
 public CameraWrapper(Racer racer)
 {
     stage = CameraStage.ShipSelect;
     this.racer = racer;
     properties = new SharedCameraProperties(Viewports.fullViewport);
     revolveCamera = new RevolveCamera(ref properties);
     currentCamera = revolveCamera;
     #if WINDOWS
     mouseCamera = new MouseCamera(ref properties, getShipPosition, getShipOrientation);
     #endif
 }
Esempio n. 9
0
        public CameraWrapper(Racer racer)
        {
            stage         = CameraStage.ShipSelect;
            this.racer    = racer;
            properties    = new SharedCameraProperties(Viewports.fullViewport);
            revolveCamera = new RevolveCamera(ref properties);
            currentCamera = revolveCamera;
#if WINDOWS
            mouseCamera = new MouseCamera(ref properties, getShipPosition, getShipOrientation);
#endif
        }
Esempio n. 10
0
 public MouseCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation)
     : base(ref properties, getPosition, getOrientation)
 {
     Mouse.SetPosition(properties.Viewport.Width / 2, properties.Viewport.Height / 2);
     originalMouseState = Mouse.GetState();
 }
Esempio n. 11
0
 public RevolveCamera(ref SharedCameraProperties properties)
     : base(ref properties, null, null)
 {
     CameraTarget = Vector3.Up;
 }
Esempio n. 12
0
 public MouseCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation)
     : base(ref properties, getPosition, getOrientation)
 {
     Mouse.SetPosition(properties.Viewport.Width / 2, properties.Viewport.Height / 2);
     originalMouseState = Mouse.GetState();
 }