Interface IUniverseModel
- Namespace
- KSP.Sim
- Assembly
- Assembly-CSharp.dll
public interface IUniverseModel
- Extension Methods
-
Properties
CelestialBodiesCount
int CelestialBodiesCount { get; }
Property Value
- int
GalacticOrigin
TransformModel GalacticOrigin { get; set; }
Property Value
- TransformModel
HomeWorld
CelestialBodyComponent HomeWorld { get; }
Property Value
- CelestialBodyComponent
InverseRotAngle
double InverseRotAngle { get; set; }
Property Value
- double
Rotation
QuaternionD Rotation { get; set; }
Property Value
- QuaternionD
SimulationObjects
IEnumerable<SimulationObjectModel> SimulationObjects { get; }
Property Value
- IEnumerable<SimulationObjectModel>
UniverseTime
double UniverseTime { get; }
Property Value
- double
UniverseTimeDelta
double UniverseTimeDelta { get; }
Property Value
- double
ViewPrefabAssetKey
string ViewPrefabAssetKey { get; }
Property Value
- string
Zup
CelestialFrame Zup { get; set; }
Property Value
- CelestialFrame
inertialReferenceFrame
InertialFrame inertialReferenceFrame { get; }
Property Value
- InertialFrame
lateUpdateDriver
ILateUpdateDriver lateUpdateDriver { get; }
Property Value
- ILateUpdateDriver
Methods
AddCelestialBody(CelestialBodyComponent)
bool AddCelestialBody(CelestialBodyComponent celestialBody)
Parameters
celestialBody CelestialBodyComponent
Returns
- bool
AddKerbal(KerbalComponent)
bool AddKerbal(KerbalComponent kerbal)
Parameters
kerbal KerbalComponent
Returns
- bool
AddSimulationObject(SimulationObjectModel)
bool AddSimulationObject(SimulationObjectModel model)
Parameters
model SimulationObjectModel
Returns
- bool
AddVessel(VesselComponent)
bool AddVessel(VesselComponent vessel)
Parameters
vessel VesselComponent
Returns
- bool
FindVesselComponent(IGGuid)
VesselComponent FindVesselComponent(IGGuid guid)
Parameters
guid IGGuid
Returns
- VesselComponent
GetAltitudeAtPos(ICoordinateSystem, Vector3d)
double GetAltitudeAtPos(ICoordinateSystem coordinateSystem, Vector3d position)
Parameters
coordinateSystem ICoordinateSystem
position Vector3d
Returns
- double
GetAltitudeAtPos(ICoordinateSystem, Vector3d, CelestialBodyComponent)
double GetAltitudeAtPos(ICoordinateSystem coordinateSystem, Vector3d position, CelestialBodyComponent body)
Parameters
coordinateSystem ICoordinateSystem
position Vector3d
body CelestialBodyComponent
Returns
- double
GetAltitudeAtPos(Position)
double GetAltitudeAtPos(Position position)
Parameters
position Position
Returns
- double
GetAltitudeAtPos(Position, CelestialBodyComponent)
double GetAltitudeAtPos(Position position, CelestialBodyComponent body)
Parameters
position Position
body CelestialBodyComponent
Returns
- double
GetAtmDensity(double, double, CelestialBodyComponent)
double GetAtmDensity(double pressure, double temperature, CelestialBodyComponent body)
Parameters
pressure double
temperature double
body CelestialBodyComponent
Returns
- double
GetGeeForceAtPosition(ICoordinateSystem, Vector3d, CelestialBodyComponent)
Vector GetGeeForceAtPosition(ICoordinateSystem coordinateSystem, Vector3d pos, CelestialBodyComponent mainBody)
Parameters
coordinateSystem ICoordinateSystem
pos Vector3d
mainBody CelestialBodyComponent
Returns
- Vector
GetGeeForceAtPosition(Position, CelestialBodyComponent)
Vector GetGeeForceAtPosition(Position pos, CelestialBodyComponent mainBody)
Parameters
pos Position
mainBody CelestialBodyComponent
Returns
- Vector
GetMainBody(ICoordinateSystem, Vector3d)
CelestialBodyComponent GetMainBody(ICoordinateSystem referenceFrame, Vector3d localPosition)
Parameters
referenceFrame ICoordinateSystem
localPosition Vector3d
Returns
- CelestialBodyComponent
GetMainBody(Position)
CelestialBodyComponent GetMainBody(Position refPos)
Parameters
refPos Position
Returns
- CelestialBodyComponent
GetStar(ICoordinateSystem, Vector3d)
CelestialBodyComponent GetStar(ICoordinateSystem coordinateSystem, Vector3d refPos)
Parameters
coordinateSystem ICoordinateSystem
refPos Vector3d
Returns
- CelestialBodyComponent
GetStar(Position)
CelestialBodyComponent GetStar(Position position)
Parameters
position Position
Returns
- CelestialBodyComponent
GetStaticPressure(ICoordinateSystem, Vector3d)
double GetStaticPressure(ICoordinateSystem coordinateSystem, Vector3d position)
Parameters
coordinateSystem ICoordinateSystem
position Vector3d
Returns
- double
GetStaticPressure(ICoordinateSystem, Vector3d, CelestialBodyComponent)
double GetStaticPressure(ICoordinateSystem coordinateSystem, Vector3d position, CelestialBodyComponent body)
Parameters
coordinateSystem ICoordinateSystem
position Vector3d
body CelestialBodyComponent
Returns
- double
GetStaticPressure(Position)
double GetStaticPressure(Position position)
Parameters
position Position
Returns
- double
GetStaticPressure(Position, CelestialBodyComponent)
double GetStaticPressure(Position position, CelestialBodyComponent body)
Parameters
position Position
body CelestialBodyComponent
Returns
- double
GetStaticPressure(double, CelestialBodyComponent)
double GetStaticPressure(double altitude, CelestialBodyComponent body)
Parameters
altitude double
body CelestialBodyComponent
Returns
- double
GetUpAxis(Position)
Vector GetUpAxis(Position position)
Parameters
position Position
Returns
- Vector
GetUpAxis(CelestialBodyComponent, ICoordinateSystem, Vector3d)
Vector GetUpAxis(CelestialBodyComponent body, ICoordinateSystem coordinateSystem, Vector3d position)
Parameters
body CelestialBodyComponent
coordinateSystem ICoordinateSystem
position Vector3d
Returns
- Vector
GetUpAxis(CelestialBodyComponent, Position)
Vector GetUpAxis(CelestialBodyComponent body, Position position)
Parameters
body CelestialBodyComponent
position Position
Returns
- Vector
RemoveCelestialBody(CelestialBodyComponent)
void RemoveCelestialBody(CelestialBodyComponent celestialBody)
Parameters
celestialBody CelestialBodyComponent
RemoveKerbal(KerbalComponent)
void RemoveKerbal(KerbalComponent kerbal)
Parameters
kerbal KerbalComponent
RemoveSimulationObject(SimulationObjectModel)
void RemoveSimulationObject(SimulationObjectModel model)
Parameters
model SimulationObjectModel
RemoveVessel(VesselComponent)
void RemoveVessel(VesselComponent vessel)
Parameters
vessel VesselComponent
Reset()
SetUniverseTime(double, double)
void SetUniverseTime(double universeTime, double deltaUT)
Parameters
universeTime double
deltaUT double
ZupAtUT(double, CelestialBodyComponent, ref CelestialFrame)
void ZupAtUT(double UT, CelestialBodyComponent body, ref CelestialFrame tempZup)
Parameters
UT double
body CelestialBodyComponent
tempZup CelestialFrame
Events
onCelestialBodyAdded
event Action<CelestialBodyComponent> onCelestialBodyAdded
Event Type
- Action<CelestialBodyComponent>
onCelestialBodyRemoved
event Action<CelestialBodyComponent> onCelestialBodyRemoved
Event Type
- Action<CelestialBodyComponent>
onSimulationObjectAdded
event Action<SimulationObjectModel> onSimulationObjectAdded
Event Type
- Action<SimulationObjectModel>
onSimulationObjectRemoved
event Action<SimulationObjectModel> onSimulationObjectRemoved
Event Type
- Action<SimulationObjectModel>
onVesselAdded
event Action<VesselComponent> onVesselAdded
Event Type
- Action<VesselComponent>
onVesselRemoved
event Action<VesselComponent> onVesselRemoved
Event Type
- Action<VesselComponent>