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

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

            getUp = getUpVector;
        }
Exemple #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());
 }
Exemple #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;
 }
Exemple #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());
 }
Exemple #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());
 }
Exemple #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());
 }
Exemple #8
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();
 }
Exemple #9
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();
 }