private static void SetGyroTorqueRoll(MyGyro gyro, float rollValue) { var torque = gyro.m_gyroOverrideVelocity.Value; torque.Z = rollValue; gyro.SetGyroTorque(torque); }
private static void SetGyroTorquePitch(MyGyro gyro, float pitchValue) { var torque = gyro.m_gyroOverrideVelocity.Value; torque.X = pitchValue; gyro.SetGyroTorque(torque); }
private static void SetGyroTorqueYaw(MyGyro gyro, float yawValue) { var torque = gyro.m_gyroOverrideVelocity.Value; torque.Y = yawValue; gyro.SetGyroTorque(torque); }