public BumperCamera(ref SharedCameraProperties properties, FGetPosition getPosition, FGetOrientation getOrientation, FGetUp getUpVector) : base(ref properties, getPosition, getOrientation) { DrawOwnShip = false; getUp = getUpVector; }
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()); }
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; }
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()); }
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()); }
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(); }