Beispiel #1
0
 /// <summary> Should be called, if the rotation is changed </summary>
 public void UpdateRot()
 {
     try {
         EditorGeneral.current_movable.Rotation = Arrows.UI2Engine(InputRotation);
     } catch (FormatException) {
         EditorGeneral.Throw("Illegal rotation input");
     } catch (NullReferenceException) {
         EditorGeneral.Throw("Nothing Selected");
     }
 }
Beispiel #2
0
 /// <summary> Should be called, if the angular velocity is changed </summary>
 public void UpdateAngularVelocity()
 {
     try {
         EditorGeneral.current_movable.AngularVelocity = Arrows.UI2Engine(InputAngularVelocity);
     } catch (FormatException) {
         EditorGeneral.Throw("Illegal angular velocity input");
     } catch (NullReferenceException) {
         EditorGeneral.Throw("Nothing Selected");
     }
 }