private void Awake() { m_Solvers.AddRange(GetComponents <Solver>()); GoalScale = Vector3.one; AltScale = new Vector3Smoothed(Vector3.one, 0.1f); DeltaTime = 0.0f; }
private void Awake() { GoalScale = Vector3.one; AltScale = new Vector3Smoothed(Vector3.one, 0.1f); DeltaTime = Time.deltaTime; lastUpdateTime = Time.realtimeSinceStartup; solvers.AddRange(GetComponents <Solver>()); }
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(); } }
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; } }