예제 #1
0
        private static void SetGyroTorqueRoll(MyGyro gyro, float rollValue)
        {
            var torque = gyro.m_gyroOverrideVelocity.Value;

            torque.Z = rollValue;
            gyro.SetGyroTorque(torque);
        }
예제 #2
0
        private static void SetGyroTorquePitch(MyGyro gyro, float pitchValue)
        {
            var torque = gyro.m_gyroOverrideVelocity.Value;

            torque.X = pitchValue;
            gyro.SetGyroTorque(torque);
        }
예제 #3
0
        private static void SetGyroTorqueYaw(MyGyro gyro, float yawValue)
        {
            var torque = gyro.m_gyroOverrideVelocity.Value;

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