Example #1
0
 private void TAKE_INPUT()
 {
     #region Ship Movement
     //Ship only rotates on y axis, so only one value is needed, not a whole-ass Vector3, to represent rotation
     Vector3 direction;
     float   r;
     direction = new Vector3(0, Input.GetAxis("VERTICAL"), Input.GetAxis("LONGITUDINAL"));
     r         = Input.GetAxis("LATERAL");
     core.SetMobilityVectors(direction, r);
     #endregion
 }