コード例 #1
0
        private void Awake()
        {
            m_Solvers.AddRange(GetComponents <Solver>());

            GoalScale = Vector3.one;
            AltScale  = new Vector3Smoothed(Vector3.one, 0.1f);
            DeltaTime = 0.0f;
        }
コード例 #2
0
        private void Awake()
        {
            GoalScale      = Vector3.one;
            AltScale       = new Vector3Smoothed(Vector3.one, 0.1f);
            DeltaTime      = Time.deltaTime;
            lastUpdateTime = Time.realtimeSinceStartup;

            solvers.AddRange(GetComponents <Solver>());
        }
コード例 #3
0
        private void Awake()
        {
            m_Solvers.AddRange(GetComponents <Solver>());

            GoalScale = Vector3.one;
            AltScale  = new Vector3Smoothed(Vector3.one, 0.1f);
            DeltaTime = 0.0f;

            //TransformTarget overrides TrackedObjectToReference
            if (!TransformTarget)
            {
                AttachToNewTrackedObject();
            }
        }
コード例 #4
0
        private void Awake()
        {
            GoalScale      = Vector3.one;
            AltScale       = new Vector3Smoothed(Vector3.one, 0.1f);
            DeltaTime      = Time.deltaTime;
            lastUpdateTime = Time.realtimeSinceStartup;

            if (!IsValidHandedness(trackedHandness))
            {
                Debug.LogError("Using invalid SolverHandler.TrackedHandness value. Defaulting to Handedness.Both");
                TrackedHandness = Handedness.Both;
            }

            if (!IsValidTrackedObjectType(trackedTargetType))
            {
                Debug.LogError("Using Obsolete SolverHandler.TrackedTargetType. Defaulting to type Head");
                TrackedTargetType = TrackedObjectType.Head;
            }
        }