Unity Integration (UnityShipping/)
Import UnityShipping/UnityPackage/package.json via Unity Package Manager (UPM). Includes Windows x64 native DLLs,
Android MotionInputFullBody-unity.aar, and C# MotionInputManager bindings.
using MotionInput.FullBody;
using UnityEngine;
public class GesturePlayerController : MonoBehaviour {
void OnEnable() {
MotionInputManager.Instance.OnDiscreteTrigger += evt => {
if (evt.gestureId == MifbGestureId.MIFB_GESTURE_JUMPING)
Jump();
else if (evt.gestureId == MifbGestureId.MIFB_GESTURE_THROWING_PITCHING)
ThrowPresent(evt.velocity);
};
}
}