ManusController class to load/unload Manus library. To be assigned to an empty GameObject
Ejemplo n.º 1
0
        /// <summary>
        /// Retrieves the current Skeletal from the glove and
        /// converts is from Manus to Unity format.
        /// </summary>
        /// <param name="unitySkel">Skeletal from Unity, which is to be updated.</param>
        public void UpdateTransform(ref Transform rootTransform)
        {
            GLOVE_DATA data = new GLOVE_DATA();

            if (Manus.SUCCESS == Manus.ManusGetData(hand, ref data))
            {
                hs.Simulate(data, ref rootTransform, hand);
            }
        }
Ejemplo n.º 2
0
        public Transform GetFingerObject(ref Transform rootTransform, int finger)
        {
            GLOVE_DATA data = new GLOVE_DATA();

            if (Manus.SUCCESS == Manus.ManusGetData(hand, ref data))
            {
                return(hs.GetFinger(data, finger, ref rootTransform, hand));
            }
            return(null);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Set the ouput power of the vibration motor.
 /// </summary>
 /// <param name="power">The power of the vibration motor ranging from 0 to 1 (ex. 0.5 = 50% power).</param>
 public int SetVibration(float power)
 {
     return(Manus.ManusSetVibration(hand, power));
 }