Code (csharp):
-
// -------------------- Kalkulationen Salto vorwärts abblocken / Calculations Block salto forward -----------------------------------------------------
-
-
// Variable divesalto
-
// sturzflug salto vorwärts blocken || dive salto forward blocking
-
if (rotationx < 90 ) divesalto =rotationx / 100.0; //Updown
-
if (rotationx > 90 ) divesalto =- 0.2; //Updown
-
-
//Variable diveblocker
-
// Blockt seitlichenTaumelflug beim Sturzflug || blocks sideways stagger flight while dive
-
if (rotationx < 90 ) diveblocker =rotationx / 200.0;
-
else diveblocker = 0;
-
-
//----------------------------Alles zurückdrehen / everything rotate back ---------------------------------------------------------------------------------
-
-
// Zurückrotieren wenn Key in die andere Richtung zeigt | rotateback when key wrong direction
-
-
//Zurückdrehen Z Achse generell. Limitiert auf Horizontal Button ist nicht gedrückt
-
//Rotate back in z axis general, limited by no horizontal button pressed
-
}
-
-
//Zurückdrehen X Achse || Rotate back X axis
-
}
-