Table of Contents

Class StationaryCameraRigSolution

Namespace
KSP.Rendering.impl
Assembly
Assembly-CSharp.dll
public class StationaryCameraRigSolution : ICameraRigSolution, ICameraShotInGimbal, ICameraShot
Inheritance
StationaryCameraRigSolution
Implements
Inherited Members
Extension Methods

Constructors

StationaryCameraRigSolution(string, CameraTweakables)

public StationaryCameraRigSolution(string solutionGuid, CameraTweakables cameraTweakables)

Parameters

solutionGuid string
cameraTweakables CameraTweakables

Properties

AnchorFrame

public ITransformFrame AnchorFrame { get; }

Property Value

ITransformFrame

CameraForward

public Vector CameraForward { get; }

Property Value

Vector

CameraFrame

public ITransformFrame CameraFrame { get; }

Property Value

ITransformFrame

CameraPosition

public Position CameraPosition { get; }

Property Value

Position

CameraRotation

public Rotation CameraRotation { get; }

Property Value

Rotation

CameraShot

public ICameraShotInGimbal CameraShot { get; }

Property Value

ICameraShotInGimbal

CameraUp

public Vector CameraUp { get; }

Property Value

Vector

FieldOfView

public double FieldOfView { get; }

Property Value

double

GimbalAxis

public Vector GimbalAxis { get; }

Property Value

Vector

GimbalFrame

public ITransformFrame GimbalFrame { get; }

Property Value

ITransformFrame

GimbalPosition

public Position GimbalPosition { get; }

Property Value

Position

GimbalRotation

public Rotation GimbalRotation { get; }

Property Value

Rotation

GimbalState

public GimbalState GimbalState { get; }

Property Value

GimbalState

IsOrthographic

public bool IsOrthographic { get; }

Property Value

bool

OrthographicSize

public double OrthographicSize { get; }

Property Value

double

Methods

AnchorToRig(ICameraRigAnchorProvider)

public void AnchorToRig(ICameraRigAnchorProvider anchorProvider)

Parameters

anchorProvider ICameraRigAnchorProvider

GetCameraContext()

public FlightCameraContext GetCameraContext()

Returns

FlightCameraContext

IsPaused()

public bool IsPaused()

Returns

bool

ModifyGimbalState(GimbalStateIncremental)

public void ModifyGimbalState(GimbalStateIncremental change)

Parameters

change GimbalStateIncremental

ModifyGimbalStateIncremental(GimbalStateIncremental)

public void ModifyGimbalStateIncremental(GimbalStateIncremental change)

Parameters

change GimbalStateIncremental

RefreshShot()

public void RefreshShot()

ResetGimbalAndCamera(GimbalState, bool)

public void ResetGimbalAndCamera(GimbalState gimbalState, bool shouldLerp = false)

Parameters

gimbalState GimbalState
shouldLerp bool

ResetGimbalAndCamera(bool)

public void ResetGimbalAndCamera(bool shouldLerp = false)

Parameters

shouldLerp bool

SetCameraFieldOfView(double)

public void SetCameraFieldOfView(double newFieldOfView)

Parameters

newFieldOfView double

SetCameraIsOrthographic(bool)

public void SetCameraIsOrthographic(bool newIsOrthographic)

Parameters

newIsOrthographic bool

SetCameraOrbitTarget(Transform)

public void SetCameraOrbitTarget(Transform newTransform)

Parameters

newTransform Transform

SetCameraOrthographicSize(double)

public void SetCameraOrthographicSize(double newSize)

Parameters

newSize double

SetDefaultGimbalState(GimbalState)

public void SetDefaultGimbalState(GimbalState gimbalState)

Parameters

gimbalState GimbalState

SetGimbalPositionProvider(IGimbalPositionProvider)

public void SetGimbalPositionProvider(IGimbalPositionProvider positionProvider)

Parameters

positionProvider IGimbalPositionProvider

SetGimbalRotationProvider(IDynamicFrameRotationProvider)

public void SetGimbalRotationProvider(IDynamicFrameRotationProvider rotationProvider)

Parameters

rotationProvider IDynamicFrameRotationProvider

SetGimbalState(GimbalState, bool)

public void SetGimbalState(GimbalState state, bool shouldLerp = false)

Parameters

state GimbalState
shouldLerp bool

SetTargetGimbalTransform(Position, Rotation, bool)

public void SetTargetGimbalTransform(Position targetPosition, Rotation targetRotation, bool shouldLerp = false)

Parameters

targetPosition Position
targetRotation Rotation
shouldLerp bool

SetTweakablesOverride(ICameraTweakablesProvider)

public void SetTweakablesOverride(ICameraTweakablesProvider tweakablesOverride)

Parameters

tweakablesOverride ICameraTweakablesProvider

UpdateShot(double, CameraInputState)

public void UpdateShot(double universeDeltaTime, CameraInputState newInputs)

Parameters

universeDeltaTime double
newInputs CameraInputState