Class TestingCameraRigSolution
- Namespace
- KSP.Rendering.impl
- Assembly
- Assembly-CSharp.dll
public class TestingCameraRigSolution : ICameraRigSolution, ICameraShotInGimbal, ICameraShot
- Inheritance
-
TestingCameraRigSolution
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
TestingCameraRigSolution(string, CameraTweakables)
public TestingCameraRigSolution(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
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
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