Пример #1
0
    public void StartClicked()
    {
        //debugText.text += "clicked ";
        if (!_kudanTracker.ArbiTrackIsTracking())
        {
            Debug.Log("start clicked");
            //debugText.text += "started tracking ";
            // from the floor placer.
            Vector3    floorPosition;                                                 // The current position in 3D space of the floor
            Quaternion floorOrientation;                                              // The current orientation of the floor in 3D space, relative to the device

            _kudanTracker.FloorPlaceGetPose(out floorPosition, out floorOrientation); // Gets the position and orientation of the floor and assigns the referenced Vector3 and Quaternion those values
            _kudanTracker.ArbiTrackStart(floorPosition, floorOrientation);            // Starts markerless tracking based upon the given floor position and orientations
            spawnersPlaced++;

            gameContent.Init();
        }

        else
        {
            //debugText.text += "already tracking ";
        }

        //else
        //{
        //    _kudanTracker.ArbiTrackStop();
        //}
    }
Пример #2
0
        public void StartClicked()
        {
            // from the floor placer.
            Vector3    floorPosition;                                                 // The current position in 3D space of the floor
            Quaternion floorOrientation;                                              // The current orientation of the floor in 3D space, relative to the device

            _kudanTracker.FloorPlaceGetPose(out floorPosition, out floorOrientation); // Gets the position and orientation of the floor and assigns the referenced Vector3 and Quaternion those values
            _kudanTracker.ArbiTrackStart(floorPosition, floorOrientation);            // Starts markerless tracking based upon the given floor position and orientations
        }
Пример #3
0
        // ReSharper disable once UnusedMember.Local
        private void Awake()
        {
            Vector3    position;
            Quaternion orientation;

            KudanTracker = FindObjectOfType <KudanTracker>();
            KudanTracker.FloorPlaceGetPose(out position, out orientation);
            KudanTracker.ArbiTrackStart(position, orientation);
        }
Пример #4
0
        public void StartClicked()
        {
            // from the floor placer.
            Vector3    floorPosition;
            Quaternion floorOrientation;

            _kudanTracker.FloorPlaceGetPose(out floorPosition, out floorOrientation);
            _kudanTracker.ArbiTrackStart(floorPosition, floorOrientation);
        }
Пример #5
0
    void SpawnLancekun()
    {
        Vector3    floor_position;
        Quaternion floor_orientation;

        kudan_tracker_.FloorPlaceGetPose(out floor_position, out floor_orientation);
        kudan_tracker_.ArbiTrackStart(floor_position, floor_orientation);

        obj_lance_mon_.gameObject.SetActive(true);
    }
Пример #6
0
        IEnumerator startArbiTracking(float waitTime, bool forced)
        {
            yield return(new WaitForSeconds(waitTime));

            if (forced || !_kudanTracker.ArbiTrackIsTracking())
            {
                Vector3    floorPos;
                Quaternion floorOrientation;
                _kudanTracker.FloorPlaceGetPose(out floorPos, out floorOrientation);
                _kudanTracker.ArbiTrackStart(floorPos, floorOrientation);
            }
        }
Пример #7
0
    IEnumerable Start()
    {
        // 1초간 대기 시킴
        yield return(new WaitForSeconds(1.0f));

        // 바닥의 위치 값과 바닥의 회전 값을 저장할 변수 선언. Quaternion(사원수)
        Vector3    floor_position;
        Quaternion floor_orientation;

        // 현재 바닥의 위치와 방위 값을 얻어옴
        kudan_tracker_.FloorPlaceGetPose(out floor_position, out floor_orientation);

        // 얻어온 값을 이용하여 트래킹 시작함
        kudan_tracker_.ArbiTrackStart(floor_position, floor_orientation);
    }
        public void MarkerlessStartTapped()
        {
            if (!_kudanTracker.ArbiTrackIsTracking())
            {
                Vector3    floorPosition;
                Quaternion floorOrientation;

                _kudanTracker.FloorPlaceGetPose(out floorPosition, out floorOrientation);
                _kudanTracker.ArbiTrackStart(floorPosition, floorOrientation);
            }
            else
            {
                _kudanTracker.ArbiTrackStop();
            }
        }
    public void SetActiveArbiTrack(bool b)
    {
        if (b)
        {
            // from the floor placer.
            Vector3    floorPosition;                                                 // The current position in 3D space of the floor
            Quaternion floorOrientation;                                              // The current orientation of the floor in 3D space, relative to the device

            _kudanTracker.FloorPlaceGetPose(out floorPosition, out floorOrientation); // Gets the position and orientation of the floor and assigns the referenced Vector3 and Quaternion those values
            _kudanTracker.ArbiTrackStart(floorPosition, floorOrientation);            // Starts markerless tracking based upon the given floor position and orientations
            m_eggSearcher.StartSearching();
        }
        else
        {
            _kudanTracker.ArbiTrackStop();
            m_eggSearcher.StopSearching();
        }
    }
        public void MarkerlessStartTapped()
        {
            if (!_kudanTracker.ArbiTrackIsTracking())
            {
                Vector3    floorPosition;
                Quaternion floorOrientation;

                _kudanTracker.FloorPlaceGetPose(out floorPosition, out floorOrientation);
                _kudanTracker.ArbiTrackStart(floorPosition, floorOrientation);
                markerlessStartButton.image.color = Color.red;
                markerlessStartText.text          = "stop";
                selectButton.interactable         = false;
            }
            else
            {
                _kudanTracker.ArbiTrackStop();
                markerlessStartButton.image.color = Color.white;
                markerlessStartText.text          = "start";
                selectButton.interactable         = true;
            }
        }