Цитата:
Сообщение от Toobone
..ти диви..деж воно є?
ЗЫ: у меня одного левое шасси подкошено больше правого на Як-9Р?
|
Код для правого и левого шасси одинаковый.
Код:
public static void moveGear(HierMesh hiermesh, float f, float f1, float f2)
{
float f3 = Math.max(-f2 * 1500F, -80F);
hiermesh.chunkSetAngles("GearC3_D0", 0.0F, f3, 0.0F);
hiermesh.chunkSetAngles("GearC4_D0", 0.0F, f3, 0.0F);
hiermesh.chunkSetAngles("GearC2_D0", 0.0F, 80F * f2, 0.0F);
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);
}