0 Members and 1 Guest are viewing this topic.
double power; VECTOR3 rotLevel; GetAttitudeRotLevel(rotLevel); currentPitch = GetPitch(); currentPitch = 180*currentPitch/PI; if (currentPitch > pitch && rotLevel.x < 1) SetAttitudeRotLevel (0, 1); if (currentPitch < pitch && rotLevel.x > -1) { SetAttitudeRotLevel (0, -1); } if (currentPitch > pitch && rotLevel.x > 1) { SetAttitudeRotLevel (0, 0); } if (currentPitch < pitch && rotLevel.x < -1) { SetAttitudeRotLevel (0, 0); }