Class BasicCameraRigSolution
- Namespace
- KSP.Rendering.impl
- Assembly
- Assembly-CSharp.dll
public class BasicCameraRigSolution : ICameraRigSolution, ICameraShotInGimbal, ICameraShot
- Inheritance
-
BasicCameraRigSolution
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
BasicCameraRigSolution(string, CameraTweakables)
public BasicCameraRigSolution(string solutionGuid, CameraTweakables cameraTweakables)
Parameters
solutionGuid string
cameraTweakables CameraTweakables
Fields
DEFAULT_FLIGHT_GIMBALSTATE
public static GimbalState DEFAULT_FLIGHT_GIMBALSTATE
Field Value
- GimbalState
DEFAULT_GIMBALSTATE
public static GimbalState DEFAULT_GIMBALSTATE
Field Value
- GimbalState
VesselSwitchBackoffFOVFactor
public float VesselSwitchBackoffFOVFactor
Field Value
- float
VesselSwitchBackoffPadding
public float VesselSwitchBackoffPadding
Field Value
- float
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; set; }
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
InitGimbalState()
public void InitGimbalState()
ModifyGimbalState(GimbalStateIncremental)
public void ModifyGimbalState(GimbalStateIncremental change)
Parameters
change GimbalStateIncremental
ModifyGimbalStateIncremental(GimbalStateIncremental)
public void ModifyGimbalStateIncremental(GimbalStateIncremental change)
Parameters
change GimbalStateIncremental
OnViewControllerFlowFinished(MessageCenterMessage)
public void OnViewControllerFlowFinished(MessageCenterMessage viewControllerMessage)
Parameters
viewControllerMessage MessageCenterMessage
RefreshShot()
public void RefreshShot()
ResetGimbalAndCamera(GimbalState, bool)
public void ResetGimbalAndCamera(GimbalState state, bool shouldLerp = false)
Parameters
state 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
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
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
public void UpdateShot(double universeDeltaTime, CameraInputState newInputs)
Parameters
universeDeltaTime double
newInputs CameraInputState