Цитата:
Сообщение от Dimas1999
У других Як-7 так же?
|
Весной было так:
Код:
public static void moveGear(HierMesh hiermesh, float f, float f1, float f2)
{
hiermesh.chunkSetAngles("GearL4_D0", 0.0F, Math.max(-f * 1500F, -60F), 0.0F);
hiermesh.chunkSetAngles("GearR4_D0", 0.0F, Math.max(-f1 * 1500F, -60F), 0.0F);
hiermesh.chunkSetAngles("GearL2_D0", 0.0F, -82.5F * f, 0.0F);
hiermesh.chunkSetAngles("GearR2_D0", 0.0F, -82.5F * f1, 0.0F);
hiermesh.chunkSetAngles("GearL3_D0", 0.0F, -85F * f, 0.0F);
hiermesh.chunkSetAngles("GearR3_D0", 0.0F, -85F * f1, 0.0F);
Aircraft.ypr[0] = Aircraft.ypr[1] = Aircraft.ypr[2] = 0.0F;
Aircraft.xyz[2] = Aircraft.cvt(f, 0.0F, 1.0F, 0.0F, 0.1F);
hiermesh.chunkSetLocate("poleL_D0", Aircraft.xyz, Aircraft.ypr);
hiermesh.chunkSetLocate("poleR_D0", Aircraft.xyz, Aircraft.ypr);
}
protected void moveGear(float f, float f1, float f2)
{
moveGear(hierMesh(), f, f1, f2);
}