/// <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); } }
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); }
/// <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)); }