Beispiel #1
0
        public override void StartTracker(HumanoidControl _humanoid)
        {
            humanoid = _humanoid;

            if (!enabled)
            {
                return;
            }

            //if (device == null) {
            //    device = new NativeOptitrackDevice();
            //    device.Init(localAddress, serverAddress, serverCommandPort, serverDataPort);
            //}

            if (trackingType == TrackingType.Skeleton)
            {
                CacheHumanBodyBonesMap(streamingClient.BoneNamingConvention, skeletonName);

                m_skeletonDef = streamingClient.GetSkeletonDefinitionByName(skeletonName);
            }
        }