public VesselFlightInfo UpdatePhysicsParameters() { vesselInfo = new VesselFlightInfo(); if (_vessel == null) { return(vesselInfo); } Vector3d velVector = _vessel.srf_velocity - FARWind.GetWind(_vessel.mainBody, _vessel.rootPart, _vessel.ReferenceTransform.position); Vector3d velVectorNorm = velVector.normalized; double vesselSpeed = velVector.magnitude; CalculateTotalAeroForce(); CalculateForceBreakdown(velVectorNorm); CalculateVesselOrientation(velVectorNorm); CalculateEngineAndIntakeBasedParameters(vesselSpeed); CalculateBallisticCoefficientAndTermVel(); CalculateStallFraction(); return(vesselInfo); }
void FixedUpdate() { if (_physicsCalcs == null) { return; } infoParameters = _physicsCalcs.UpdatePhysicsParameters(); _stabilityAugmentation.UpdatePhysicsInfo(infoParameters); _flightStatusGUI.UpdateInfoParameters(infoParameters); _flightDataGUI.UpdateInfoParameters(infoParameters); }
public void UpdatePhysicsInfo(VesselFlightInfo info) { this.info = info; }
public void UpdateInfoParameters(VesselFlightInfo info) { infoParameters = info; SetFlightStatusWindow(); }
public void UpdateInfoParameters(VesselFlightInfo info) { infoParameters = info; CreateLabelString(); CreateDataString(); }
void FixedUpdate() { if (_physicsCalcs == null) return; infoParameters = _physicsCalcs.UpdatePhysicsParameters(); _stabilityAugmentation.UpdatePhysicsInfo(infoParameters); _flightStatusGUI.UpdateInfoParameters(infoParameters); _flightDataGUI.UpdateInfoParameters(infoParameters); }
public VesselFlightInfo UpdatePhysicsParameters() { vesselInfo = new VesselFlightInfo(); if (_vessel == null) return vesselInfo; Vector3d velVector = _vessel.srf_velocity - FARWind.GetWind(_vessel.mainBody, _vessel.rootPart, _vessel.ReferenceTransform.position); Vector3d velVectorNorm = velVector.normalized; double vesselSpeed = velVector.magnitude; CalculateTotalAeroForce(); CalculateForceBreakdown(velVectorNorm, velVector); CalculateVesselOrientation(velVectorNorm); CalculateEngineAndIntakeBasedParameters(vesselSpeed); CalculateBallisticCoefficientAndTermVel(); CalculateStallFraction(); return vesselInfo; }
public void UpdateInfoParameters(VesselFlightInfo info) { infoParameters = info; }
public void UpdatePhysicsInfo(VesselFlightInfo flightInfo) { info = flightInfo; }