本文整理汇总了C#中Vessel.Pitch方法的典型用法代码示例。如果您正苦于以下问题:C# Vessel.Pitch方法的具体用法?C# Vessel.Pitch怎么用?C# Vessel.Pitch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vessel
的用法示例。
在下文中一共展示了Vessel.Pitch方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MaxAngle
private float MaxAngle(Vessel vessel)
{
float angle = 100000 / (float)vesselState.dynamicPressure;
float vertical = 90 + vessel.Pitch();
angle = Mathf.Clamp(angle, 0, 35);
if (angle > vertical)
return vertical;
return angle;
}
示例2: PreflightInfo
string PreflightInfo(Vessel vessel)
{
string info;
info = string.Format("Drag area {0:0.00}", vesselState.areaDrag);
info += string.Format("\nDrag coefficient {0:0.00}", vesselState.dragCoef);
info += string.Format("\nDrag coefficient fwd {0:0.00}", vessel.DragCubeCoefForward());
info += string.Format("\nMass {0:0.00}", vesselState.mass);
DragRatio.value = vesselState.areaDrag/vesselState.mass;
info += string.Format("\narea/mass {0:0.00}", DragRatio.value);
info += string.Format("\nGuess TWR {0:0.00}", TWRWeightedAverage(2 * vessel.mainBody.GeeASL * DestinationHeight,vessel));
info += string.Format("\nPitch {0:0.00}", vessel.Pitch());
info += string.Format("\nTimeToDesiredAP {0:0.00}", Calculations.TimeToReachAP(vesselState, vesselState.speedVertical, HoldAPTime));
return info;
}
示例3: MaxAngle
public static float MaxAngle(Vessel vessel, GravityTurner turner)
{
float angle = 100000 / (float)turner.vesselState.dynamicPressure;
float vertical = 90 + vessel.Pitch();
angle = Mathf.Clamp(angle, 0, 35);
if (angle > vertical)
return vertical;
return angle;
}