Table of Contents

Class PQSFreeCam

Namespace
KSP.Tools
Assembly
Assembly-CSharp.dll
[DisableCustomEditorBase]
public class PQSFreeCam : MonoBehaviour
Inheritance
PQSFreeCam
Extension Methods

Constructors

PQSFreeCam()

public PQSFreeCam()

Fields

EnableOceanCameraCollision

public bool EnableOceanCameraCollision

Field Value

bool

MAX_PITCH_DOWN

public const float MAX_PITCH_DOWN = 90

Field Value

float

MAX_PITCH_UP

public const float MAX_PITCH_UP = 90

Field Value

float

MIN_FLIGHT_OFFSET

public const double MIN_FLIGHT_OFFSET = 5

Field Value

double

OnDevTerrainCollision

public PQSFreeCam.DevTerrainCollisionDelegate OnDevTerrainCollision

Field Value

PQSFreeCam.DevTerrainCollisionDelegate

TerrainCollisionDistance

public double TerrainCollisionDistance

Field Value

double

doubleClickZoomFactor

public float doubleClickZoomFactor

Field Value

float

pqsTransform

public Transform pqsTransform

Field Value

Transform

Properties

AltitudeGroundLevel

public double AltitudeGroundLevel { get; }

Property Value

double

AltitudeSeaLevel

public double AltitudeSeaLevel { get; }

Property Value

double

BoostMultiplier

public FloatSnapLerper BoostMultiplier { get; }

Property Value

FloatSnapLerper

CamAngle

public double CamAngle { get; }

Property Value

double

CamPitch

public float CamPitch { get; }

Property Value

float

CenterDistance

public double CenterDistance { get; }

Property Value

double

ElevationOffset

public FloatSnapLerper ElevationOffset { get; }

Property Value

FloatSnapLerper

IsActive

public bool IsActive { get; set; }

Property Value

bool

MouseOffset

public Vector2SnapLerper MouseOffset { get; }

Property Value

Vector2SnapLerper

OceanAltitude

public double OceanAltitude { get; }

Property Value

double

OrbitThresholdScale

public double OrbitThresholdScale { get; set; }

Property Value

double

OrbitWarpScale

public double OrbitWarpScale { get; set; }

Property Value

double

Orientation

public QuaternionD Orientation { get; }

Property Value

QuaternionD

Pqs

public PQS Pqs { get; }

Property Value

PQS

PqsRadius

public double PqsRadius { get; }

Property Value

double

PqsRadiusOuter

public double PqsRadiusOuter { get; }

Property Value

double

RotateOffset

public FloatSnapLerper RotateOffset { get; }

Property Value

FloatSnapLerper

SpeedMultiplier

public FloatSnapLerper SpeedMultiplier { get; }

Property Value

FloatSnapLerper

StateBookmarks

public PQSFreeCamBookmarks StateBookmarks { get; set; }

Property Value

PQSFreeCamBookmarks

StateSnapshot

public PQSFreeCamState StateSnapshot { get; set; }

Property Value

PQSFreeCamState

Methods

ChangeAltitude(double)

public void ChangeAltitude(double amount)

Parameters

amount double

ChangeHeading(double)

public void ChangeHeading(double amount)

Parameters

amount double

ChangePitch(float)

public void ChangePitch(float amount)

Parameters

amount float

ClearStateBookmark(int)

public void ClearStateBookmark(int index)

Parameters

index int

DisableDevSphere()

public void DisableDevSphere()

GetHeading()

public double GetHeading()

Returns

double

GetMainRenderCamera()

public Camera GetMainRenderCamera()

Returns

Camera

GetPQSPosition()

public Vector3 GetPQSPosition()

Returns

Vector3

GetSpeed()

public double GetSpeed()

Returns

double

GetState(AltitudeMode)

public PQSFreeCamState GetState(AltitudeMode mode = AltitudeMode.FromGround)

Parameters

mode AltitudeMode

Returns

PQSFreeCamState

LoadStateBookmark(int)

public bool LoadStateBookmark(int index)

Parameters

index int

Returns

bool

MoveToRadial(Vector3d)

public void MoveToRadial(Vector3d radial)

Parameters

radial Vector3d

OnShootTerrainColliderRay(Vector3, Vector3, bool, bool)

public void OnShootTerrainColliderRay(Vector3 origin, Vector3 direction, bool enableDebugSphere = true, bool enableLog = true)

Parameters

origin Vector3
direction Vector3
enableDebugSphere bool
enableLog bool

SaveStateBookmark(int, string)

public void SaveStateBookmark(int index, string description = null)

Parameters

index int
description string

SetAltitude(double, AltitudeMode)

public void SetAltitude(double altitude, AltitudeMode mode)

Parameters

altitude double
mode AltitudeMode

SetLatLon(double, double, double)

public void SetLatLon(double lat, double lon, double heading = 0)

Parameters

lat double
lon double
heading double

SetState(PQSFreeCamState, bool)

public void SetState(PQSFreeCamState values, bool setSpeedMultiplier = false)

Parameters

values PQSFreeCamState
setSpeedMultiplier bool

SetState(double, double, double, AltitudeMode, float, float)

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

ToggleDebugSphereVisibility()

public void ToggleDebugSphereVisibility()

Translate(double, double)

public void Translate(double x, double y)

Parameters

x double
y double

UpdatePQSValues(PrevisCameraManager)

public void UpdatePQSValues(PrevisCameraManager manager)

Parameters

manager PrevisCameraManager