Interface for reading and writing inputs in a Unity Cluster.

Example #1
0
        /// <summary>
        ///   <para>Returns the rotation of a tracker as a Quaternion.</para>
        /// </summary>
        /// <param name="name">Name of input to poll.</param>
        public static Quaternion GetTrackerRotation(string name)
        {
            Quaternion result;

            ClusterInput.INTERNAL_CALL_GetTrackerRotation(name, out result);
            return(result);
        }
Example #2
0
        public static Quaternion GetTrackerRotation(string name)
        {
            Quaternion result;

            ClusterInput.GetTrackerRotation_Injected(name, out result);
            return(result);
        }
Example #3
0
        /// <summary>
        ///   <para>Return the position of a tracker as a Vector3.</para>
        /// </summary>
        /// <param name="name">Name of input to poll.</param>
        public static Vector3 GetTrackerPosition(string name)
        {
            Vector3 result;

            ClusterInput.INTERNAL_CALL_GetTrackerPosition(name, out result);
            return(result);
        }
Example #4
0
        public static Vector3 GetTrackerPosition(string name)
        {
            Vector3 result;

            ClusterInput.GetTrackerPosition_Injected(name, out result);
            return(result);
        }
Example #5
0
        /// <summary>
        ///   <para>Returns the rotation of a tracker as a Quaternion.</para>
        /// </summary>
        /// <param name="name">Name of input to poll.</param>
        public static Quaternion GetTrackerRotation(string name)
        {
            Quaternion quaternion;

            ClusterInput.INTERNAL_CALL_GetTrackerRotation(name, out quaternion);
            return(quaternion);
        }
Example #6
0
        /// <summary>
        ///   <para>Return the position of a tracker as a Vector3.</para>
        /// </summary>
        /// <param name="name">Name of input to poll.</param>
        public static Vector3 GetTrackerPosition(string name)
        {
            Vector3 vector3;

            ClusterInput.INTERNAL_CALL_GetTrackerPosition(name, out vector3);
            return(vector3);
        }
Example #7
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.ClusterInput o;
         o = new UnityEngine.ClusterInput();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.ClusterInput o;
         o=new UnityEngine.ClusterInput();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
Example #9
0
 /// <summary>
 ///   <para>Sets the tracker rotation for this input. Only works for input typed Custom.</para>
 /// </summary>
 /// <param name="name">Name of input to modify.</param>
 /// <param name="value">Value to set.</param>
 public static void SetTrackerRotation(string name, Quaternion value)
 {
     ClusterInput.INTERNAL_CALL_SetTrackerRotation(name, ref value);
 }
Example #10
0
 /// <summary>
 ///   <para>Sets the tracker position for this input. Only works for input typed Custom.</para>
 /// </summary>
 /// <param name="name">Name of input to modify.</param>
 /// <param name="value">Value to set.</param>
 public static void SetTrackerPosition(string name, Vector3 value)
 {
     ClusterInput.INTERNAL_CALL_SetTrackerPosition(name, ref value);
 }
Example #11
0
 public static void SetTrackerRotation(string name, Quaternion value)
 {
     ClusterInput.SetTrackerRotation_Injected(name, ref value);
 }
Example #12
0
 public static void SetTrackerPosition(string name, Vector3 value)
 {
     ClusterInput.SetTrackerPosition_Injected(name, ref value);
 }