Class PQSFreeCam
- Namespace
- KSP.Tools
- Assembly
- Assembly-CSharp.dll
[DisableCustomEditorBase]
public class PQSFreeCam : MonoBehaviour
- Inheritance
-
PQSFreeCam
- Extension Methods
-
Constructors
Fields
public bool EnableOceanCameraCollision
Field Value
- bool
public const float MAX_PITCH_DOWN = 90
Field Value
- float
public const float MAX_PITCH_UP = 90
Field Value
- float
public const double MIN_FLIGHT_OFFSET = 5
Field Value
- double
public PQSFreeCam.DevTerrainCollisionDelegate OnDevTerrainCollision
Field Value
- PQSFreeCam.DevTerrainCollisionDelegate
public double TerrainCollisionDistance
Field Value
- double
public float doubleClickZoomFactor
Field Value
- float
public Transform pqsTransform
Field Value
- Transform
Properties
public double AltitudeGroundLevel { get; }
Property Value
- double
public double AltitudeSeaLevel { get; }
Property Value
- double
public FloatSnapLerper BoostMultiplier { get; }
Property Value
- FloatSnapLerper
public double CamAngle { get; }
Property Value
- double
public float CamPitch { get; }
Property Value
- float
public double CenterDistance { get; }
Property Value
- double
public FloatSnapLerper ElevationOffset { get; }
Property Value
- FloatSnapLerper
public bool IsActive { get; set; }
Property Value
- bool
public Vector2SnapLerper MouseOffset { get; }
Property Value
- Vector2SnapLerper
public double OceanAltitude { get; }
Property Value
- double
public double OrbitThresholdScale { get; set; }
Property Value
- double
public double OrbitWarpScale { get; set; }
Property Value
- double
public QuaternionD Orientation { get; }
Property Value
- QuaternionD
Property Value
- PQS
public double PqsRadius { get; }
Property Value
- double
public double PqsRadiusOuter { get; }
Property Value
- double
public FloatSnapLerper RotateOffset { get; }
Property Value
- FloatSnapLerper
public FloatSnapLerper SpeedMultiplier { get; }
Property Value
- FloatSnapLerper
public PQSFreeCamBookmarks StateBookmarks { get; set; }
Property Value
- PQSFreeCamBookmarks
public PQSFreeCamState StateSnapshot { get; set; }
Property Value
- PQSFreeCamState
Methods
public void ChangeAltitude(double amount)
Parameters
amount double
public void ChangeHeading(double amount)
Parameters
amount double
public void ChangePitch(float amount)
Parameters
amount float
public void ClearStateBookmark(int index)
Parameters
index int
public void DisableDevSphere()
public double GetHeading()
Returns
- double
GetMainRenderCamera()
public Camera GetMainRenderCamera()
Returns
- Camera
public Vector3 GetPQSPosition()
Returns
- Vector3
Returns
- double
public PQSFreeCamState GetState(AltitudeMode mode = AltitudeMode.FromGround)
Parameters
mode AltitudeMode
Returns
- PQSFreeCamState
public bool LoadStateBookmark(int index)
Parameters
index int
Returns
- bool
public void MoveToRadial(Vector3d radial)
Parameters
radial Vector3d
public void OnShootTerrainColliderRay(Vector3 origin, Vector3 direction, bool enableDebugSphere = true, bool enableLog = true)
Parameters
origin Vector3
direction Vector3
enableDebugSphere bool
enableLog bool
public void SaveStateBookmark(int index, string description = null)
Parameters
index int
description string
public void SetAltitude(double altitude, AltitudeMode mode)
Parameters
altitude double
mode AltitudeMode
public void SetLatLon(double lat, double lon, double heading = 0)
Parameters
lat double
lon double
heading double
public void SetState(PQSFreeCamState values, bool setSpeedMultiplier = false)
Parameters
values PQSFreeCamState
setSpeedMultiplier bool
public void SetState(double lat, double lon, double altitude, AltitudeMode mode, float pitch, float heading)
Parameters
lat double
lon double
altitude double
mode AltitudeMode
pitch float
heading float
public void ToggleDebugSphereVisibility()
public void Translate(double x, double y)
Parameters
x double
y double
public void UpdatePQSValues(PrevisCameraManager manager)
Parameters
manager PrevisCameraManager