Esempio n. 1
0
        public override void StartTracker(HumanoidControl _humanoid)
        {
            humanoid = _humanoid;

            if (!enabled)
            {
                return;
            }

            if (useLeapPackage && isHeadMounted)
            {
                AddXRServiceProvider();

                if (leapProvider == null)
                {
                    leapProvider = Leap.Unity.Hands.Provider;
                }

                leapProvider.OnUpdateFrame -= OnUpdateFrame;
                leapProvider.OnUpdateFrame += OnUpdateFrame;
            }
            else
            {
                device = new LeapDevice();
                device.Init();

                leapTransform = device.GetTracker();

                AddTracker(humanoid, "LeapMotion");
                if (isHeadMounted)
                {
                    SetTrackerOnCamera();
                }
            }
        }
Esempio n. 2
0
        static HumanoidConfiguration()
        {
            //Debug.Log("Initializing Humanoid Dlls");
#if hLEAP
            LeapDevice.LoadDlls();
#endif
#if hORBBEC
            AstraDevice.LoadDlls();
#endif
#if hNEURON
            NeuronDevice.LoadDlls();
#endif
        }