Class VesselVehicle
- Namespace
- KSP.Sim.impl
- Assembly
- Assembly-CSharp.dll
public class VesselVehicle : IVehicle, IControllableInput, IFlightControllableInput, IOrbitControllableInput, IOrbitControlInput, IFlightControlInput, IControlInput, IVehicleControlsReader, IFlightControlReader, IOrbitControlReader, IOrbitTelemetry, IFlightTelemetry, IVehicleTelemetry, IControllableActionGroups, IActionGroups
- Inheritance
-
VesselVehicle
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
VesselVehicle(SpaceSimulation, IModelViewMap, VesselComponent, UniverseModel, IViewController, bool)
public VesselVehicle(SpaceSimulation spaceSimulation, IModelViewMap modelViewMap, VesselComponent vessel, UniverseModel universeModel, IViewController viewController, bool controllable)
Parameters
spaceSimulation SpaceSimulation
modelViewMap IModelViewMap
vessel VesselComponent
universeModel UniverseModel
viewController IViewController
controllable bool
Properties
ActionGroups
public ActionGroupStates ActionGroups { get; }
Property Value
- ActionGroupStates
AltimeterDisplayMode
public AltimeterDisplayMode AltimeterDisplayMode { get; }
Property Value
- AltimeterDisplayMode
AltitudeFromRadius
public double AltitudeFromRadius { get; }
Property Value
- double
AltitudeFromScenery
public double AltitudeFromScenery { get; }
Property Value
- double
AltitudeFromSeaLevel
public double AltitudeFromSeaLevel { get; }
Property Value
- double
AltitudeFromSurface
public double AltitudeFromSurface { get; }
Property Value
- double
AltitudeFromTerrain
public double AltitudeFromTerrain { get; }
Property Value
- double
AngularMomentum
public Vector AngularMomentum { get; }
Property Value
- Vector
AngularVelocity
public AngularVelocity AngularVelocity { get; }
Property Value
- AngularVelocity
AtmosphericDensity
public double AtmosphericDensity { get; }
Property Value
- double
AtmosphericDensityNormalized
public double AtmosphericDensityNormalized { get; }
Property Value
- double
AtmosphericTemperature
public double AtmosphericTemperature { get; }
Property Value
- double
CenterOfMass
public Position CenterOfMass { get; }
Property Value
- Position
ControllableActionGroups
public IControllableActionGroups ControllableActionGroups { get; }
Property Value
- IControllableActionGroups
public IControllableInput ControllableInput { get; }
Property Value
- IControllableInput
DynamicPressurekPa
public double DynamicPressurekPa { get; }
Property Value
- double
East
public Vector East { get; }
Property Value
- Vector
ExternalTemperature
public double ExternalTemperature { get; }
Property Value
- double
public IFlightControlInput FlightControlInput { get; }
Property Value
- IFlightControlInput
public IFlightControllableInput FlightControllableInput { get; }
Property Value
- IFlightControllableInput
FlightControlsMode
public FlightControlsMode FlightControlsMode { get; }
Property Value
- FlightControlsMode
FlightTelemetry
public IFlightTelemetry FlightTelemetry { get; }
Property Value
- IFlightTelemetry
GeeForce
public double GeeForce { get; }
Property Value
- double
Guid
public IGGuid Guid { get; }
Property Value
- IGGuid
HaveTarget
public bool HaveTarget { get; }
Property Value
- bool
Heading
public double Heading { get; }
Property Value
- double
HorizontalSpeed
public double HorizontalSpeed { get; }
Property Value
- double
IsInAtmosphere
public bool IsInAtmosphere { get; }
Property Value
- bool
IsLandedOrSplashed
public bool IsLandedOrSplashed { get; }
Property Value
- bool
IsValidInSim
public bool IsValidInSim { get; }
Property Value
- bool
LandedOrSplashed
public bool LandedOrSplashed { get; set; }
Property Value
- bool
Latitude
public double Latitude { get; }
Property Value
- double
Longitude
public double Longitude { get; }
Property Value
- double
MachNumber
public double MachNumber { get; }
Property Value
- double
MainBody
public CelestialBodyComponent MainBody { get; }
Property Value
- CelestialBodyComponent
MomentOfInertia
public Vector MomentOfInertia { get; }
Property Value
- Vector
North
public Vector North { get; }
Property Value
- Vector
ObservationForward
public Vector ObservationForward { get; }
Property Value
- Vector
ObservationFrame
public ITransformFrame ObservationFrame { get; }
Property Value
- ITransformFrame
Orbit
public IOrbit Orbit { get; }
Property Value
- IOrbit
OrbitAntiNormal
public Vector OrbitAntiNormal { get; }
Property Value
- Vector
public IOrbitControlInput OrbitControlInput { get; }
Property Value
- IOrbitControlInput
public IOrbitControllableInput OrbitControllableInput { get; }
Property Value
- IOrbitControllableInput
OrbitNormal
public Vector OrbitNormal { get; }
Property Value
- Vector
OrbitPrograde
public Vector OrbitPrograde { get; }
Property Value
- Vector
OrbitRadialIn
public Vector OrbitRadialIn { get; }
Property Value
- Vector
OrbitRadialOut
public Vector OrbitRadialOut { get; }
Property Value
- Vector
OrbitRetrograde
public Vector OrbitRetrograde { get; }
Property Value
- Vector
OrbitTelemetry
public IOrbitTelemetry OrbitTelemetry { get; }
Property Value
- IOrbitTelemetry
OrbitalSpeed
public double OrbitalSpeed { get; }
Property Value
- double
OrbitalVelocity
public Vector OrbitalVelocity { get; }
Property Value
- Vector
PatchedConicsAttached
public bool PatchedConicsAttached { get; set; }
Property Value
- bool
Position
public Position Position { get; }
Property Value
- Position
Rotation
public Rotation Rotation { get; }
Property Value
- Rotation
SimulationObject
public SimulationObjectModel SimulationObject { get; }
Property Value
- SimulationObjectModel
SoundSpeed
public double SoundSpeed { get; }
Property Value
- double
SpecificAcceleration
public double SpecificAcceleration { get; }
Property Value
- double
SpeedDisplayMode
public SpeedDisplayMode SpeedDisplayMode { get; }
Property Value
- SpeedDisplayMode
StaticPressurekPa
public double StaticPressurekPa { get; }
Property Value
- double
SurfacePrograde
public Vector SurfacePrograde { get; }
Property Value
- Vector
SurfaceRetrograde
public Vector SurfaceRetrograde { get; }
Property Value
- Vector
SurfaceSpeed
public double SurfaceSpeed { get; }
Property Value
- double
SurfaceVelocity
public Vector SurfaceVelocity { get; }
Property Value
- Vector
Target
public SimulationObjectModel Target { get; }
Property Value
- SimulationObjectModel
TargetSpeed
public double TargetSpeed { get; }
Property Value
- double
TargetVelocity
public Vector TargetVelocity { get; }
Property Value
- Vector
Up
public Vector Up { get; }
Property Value
- Vector
VehicleTelemetry
public IVehicleTelemetry VehicleTelemetry { get; }
Property Value
- IVehicleTelemetry
Velocity
public Velocity Velocity { get; }
Property Value
- Velocity
VerticalSpeed
public double VerticalSpeed { get; }
Property Value
- double
X
Property Value
- float
Y
Property Value
- float
Z
Property Value
- float
brakes
public bool brakes { get; }
Property Value
- bool
gearDown
public bool gearDown { get; }
Property Value
- bool
gearUp
public bool gearUp { get; }
Property Value
- bool
headlight
public bool headlight { get; }
Property Value
- bool
killRot
public bool killRot { get; }
Property Value
- bool
mainThrottle
public float mainThrottle { get; }
Property Value
- float
pitch
public float pitch { get; }
Property Value
- float
pitchTrim
public float pitchTrim { get; }
Property Value
- float
roll
public float roll { get; }
Property Value
- float
rollTrim
public float rollTrim { get; }
Property Value
- float
wheelSteer
public float wheelSteer { get; }
Property Value
- float
wheelSteerTrim
public float wheelSteerTrim { get; }
Property Value
- float
wheelThrottle
public float wheelThrottle { get; }
Property Value
- float
wheelThrottleTrim
public float wheelThrottleTrim { get; }
Property Value
- float
yaw
public float yaw { get; }
Property Value
- float
yawTrim
public float yawTrim { get; }
Property Value
- float
Methods
AtomicSet(FlightCtrlStateIncremental)
public void AtomicSet(FlightCtrlStateIncremental flightControlUpdate)
Parameters
flightControlUpdate FlightCtrlStateIncremental
AtomicSet(float?, float?, float?, float?, bool?)
public void AtomicSet(float? wheelSteer, float? wheelSteerTrim, float? wheelThrottle, float? wheelThrottleTrim, bool? headlight)
Parameters
wheelSteer float?
wheelSteerTrim float?
wheelThrottle float?
wheelThrottleTrim float?
headlight bool?
AtomicSet(float?, float?, float?, float?, float?, float?, float?, float?, float?, float?, float?, bool?, bool?, bool?, bool?)
public void AtomicSet(float? mainThrottle, float? roll, float? yaw, float? pitch, float? rollTrim, float? yawTrim, float? pitchTrim, float? wheelSteer, float? wheelSteerTrim, float? wheelThrottle, float? wheelThrottleTrim, bool? killRot, bool? gearUp, bool? gearDown, bool? headlight)
Parameters
mainThrottle float?
roll float?
yaw float?
pitch float?
rollTrim float?
yawTrim float?
pitchTrim float?
wheelSteer float?
wheelSteerTrim float?
wheelThrottle float?
wheelThrottleTrim float?
killRot bool?
gearUp bool?
gearDown bool?
headlight bool?
AtomicSet(float?, float?, float?, float?, float?, float?, float?, float?, float?, float?, float?, float?, float?, float?, bool?, bool?, bool?, bool?)
public void AtomicSet(float? mainThrottle, float? roll, float? yaw, float? pitch, float? rollTrim, float? yawTrim, float? pitchTrim, float? wheelSteer, float? wheelSteerTrim, float? wheelThrottle, float? wheelThrottleTrim, float? X, float? Y, float? Z, bool? killRot, bool? gearUp, bool? gearDown, bool? headlight)
Parameters
mainThrottle float?
roll float?
yaw float?
pitch float?
rollTrim float?
yawTrim float?
pitchTrim float?
wheelSteer float?
wheelSteerTrim float?
wheelThrottle float?
wheelThrottleTrim float?
X float?
Y float?
Z float?
killRot bool?
gearUp bool?
gearDown bool?
headlight bool?
CanPlayerControl(byte)
public bool CanPlayerControl(byte playerId)
Parameters
playerId byte
Returns
- bool
GetDisplayAltitude()
public double GetDisplayAltitude()
Returns
- double
GetGroup(KSPActionGroup)
public bool GetGroup(KSPActionGroup group)
Parameters
group KSPActionGroup
Returns
- bool
GetGroupStates()
public ActionGroupStates GetGroupStates()
Returns
- ActionGroupStates
GetNavballRotationForForward(Vector)
public Rotation GetNavballRotationForForward(Vector viewerForward)
Parameters
viewerForward Vector
Returns
- Rotation
GetSimVessel(bool)
public VesselComponent GetSimVessel(bool requireValidInSim = true)
Parameters
requireValidInSim bool
Returns
- VesselComponent
GetSimulationObject(bool)
public SimulationObjectModel GetSimulationObject(bool requireValidInSim = true)
Parameters
requireValidInSim bool
Returns
- SimulationObjectModel
SetAltimeterDisplayMode(AltimeterDisplayMode, Action<string>)
public void SetAltimeterDisplayMode(AltimeterDisplayMode value, Action<string> callback = null)
Parameters
value AltimeterDisplayMode
callback Action<string>
SetAutopilotMode(AutopilotMode, Action<string>)
public void SetAutopilotMode(AutopilotMode value, Action<string> callback = null)
Parameters
value AutopilotMode
callback Action<string>
SetFlightControlsMode(FlightControlsMode, Action<string>)
public void SetFlightControlsMode(FlightControlsMode value, Action<string> callback = null)
Parameters
value FlightControlsMode
callback Action<string>
SetGroup(KSPActionGroup, bool, Action<string>)
public void SetGroup(KSPActionGroup group, bool value, Action<string> callback = null)
Parameters
group KSPActionGroup
value bool
callback Action<string>
SetSpeedDisplayMode(SpeedDisplayMode, Action<string>)
public void SetSpeedDisplayMode(SpeedDisplayMode mode, Action<string> callback = null)
Parameters
mode SpeedDisplayMode
callback Action<string>
SyncTo(VesselComponent)
public void SyncTo(VesselComponent vessel)
Parameters
vessel VesselComponent
TriggerGroup(KSPActionGroup, Action<string>)
public void TriggerGroup(KSPActionGroup group, Action<string> callback = null)
Parameters
group KSPActionGroup
callback Action<string>
TryGetSimVessel(out VesselComponent, bool)
public bool TryGetSimVessel(out VesselComponent vessel, bool requireValidInSim = true)
Parameters
vessel VesselComponent
requireValidInSim bool
Returns
- bool
Events
OnActionGroupChanged
public event Action<KSPActionGroup, bool> OnActionGroupChanged
Event Type
- Action<KSPActionGroup, bool>
OnAltimeterDisplayModeChange
public event Action<AltimeterDisplayMode> OnAltimeterDisplayModeChange
Event Type
- Action<AltimeterDisplayMode>
OnFlightControlsModeChange
public event Action<FlightControlsMode> OnFlightControlsModeChange
Event Type
- Action<FlightControlsMode>
OnSpeedDisplayModeChange
public event Action<SpeedDisplayMode> OnSpeedDisplayModeChange
Event Type
- Action<SpeedDisplayMode>