// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Utilities.Solvers { /// /// Provides a solver that overlaps with the tracked object. /// [AddComponentMenu("Scripts/MRTK/SDK/Overlap")] public class Overlap : Solver { /// public override void SolverUpdate() { var target = SolverHandler.TransformTarget; if (target != null) { GoalPosition = target.position; GoalRotation = target.rotation; } } } }