// Use this for initialization
        public virtual void Start()
        {
            Application.runInBackground = true;
            Manus.ManusInit(out session);
            Manus.ManusSetCoordinateSystem(session, coor_up_t.COOR_Y_UP, coor_handed_t.COOR_LEFT_HANDED);

            for (int i = 0; i < 2; i++)
            {
                _handValues[i].CloseValue     = CloseValue.Open;
                _handValues[i].OnValueChanged = new ToggleEvent();
            }

            Manus.ManusGetHand(session, (device_type_t)0, out _leftHand);
            Manus.ManusGetHand(session, (device_type_t)1, out _rightHand);
        }
Example #2
0
        // Use this for initialization
        public virtual void Start()
        {
            Application.runInBackground = true;
            Manus.ManusInit(out session);
            Manus.ManusSetCoordinateSystem(session, coor_up_t.COOR_Y_UP, coor_handed_t.COOR_LEFT_HANDED);

            Manus.ManusSelectProfile(session, (uint)BoneFormat);

            uint amountOfProfiles = Manus.ManusGetProfileCount(session);

            if (BoneFormat == AnimationType.UE4 && amountOfProfiles == 1)
            {
                Debug.LogError("Body.json does not contain data for the " + BoneFormat.ToString() + " bone format. Replace body.json Check the documentation for more information: https://goo.gl/dfUh66");
            }

            for (int i = 0; i < 2; i++)
            {
                _handValues[i].CloseValue     = CloseValue.Open;
                _handValues[i].OnValueChanged = new ToggleEvent();
            }

            Manus.ManusGetHand(session, (device_type_t)0, out _leftHand);
            Manus.ManusGetHand(session, (device_type_t)1, out _rightHand);
        }