SolverHandler Class

Definition

This class handles the solver components that are attached to this GameObject

C#
[UnityEngine.AddComponentMenu("MRTK/Spatial Manipulation/Solvers/Solver Handler")]
[UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/ux-building-blocks/solvers/solver")]
public class SolverHandler : UnityEngine.MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
SolverHandler
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.HelpURLAttribute

Constructors

Properties

AdditionalOffset

Add an additional offset of the tracked object on which to base the solver on.

AdditionalRotation

Additional rotation to be added to of the tracked object.

AltScale

Alternate scale.

CurrentTrackedHandedness

Currently tracked hand or motion controller, if applicable.

DeltaTime

The timestamp the solvers will use for calculations.

GoalPosition

The position to which the solver is trying to move.

GoalRotation

The rotation to which the solver is trying to rotate.

GoalScale

The scale to which the solver is trying to scale.

LeftInteractor

The interactor used when solving for the left hand / controller.

PreferredTrackedHandedness

Controller side to favor and pick first if the Handedness is set to both left and right.

RightInteractor

The interactor used when solving for the left hand / controller.

Solvers

List of solvers that this handler will manage and update.

TrackedHandedness

If tracking hands or motion controllers, determines which hand(s) are valid attachments.

TrackedHandJoint

When TrackedTargetType is set to hand joint, use this specific joint to calculate position and orientation

TrackedTargetType

Tracked object from which to calculate position and orientation. To manually override and use a scene object, use the TransformTarget field.

TransformOverride

Manual override for when TrackedTargetType is set to CustomOverride

TransformTarget

The target transform upon which the solvers will act.

UpdateSolvers

Indicated whether or not this SolverHandler calls SolverUpdate() every frame.

Methods

AttachToNewTrackedObject()

Begin the process of tracking a new object as defined by the TrackedTargetType property.

DetachFromCurrentTrackedObject()

Clear the parent of the internally created tracking-target game object.

IsValidHandedness(Handedness)

Determines whether or not the specified handedness is valid for solver scenarios.

OnDestroy()

A Unity event function that is called when the script component has been destroyed.

RefreshTrackedObject()

Clears the transform target and attaches to the current TrackedTargetType.

Start()

A Unity event function that is called on the frame when a script is enabled just before any of the update methods are called the first time.

Update()

A Unity event function that is called every frame, if this object is enabled.

Applies to

Táirge Leaganacha
MRTK3 Spatial Manipulation 3.0, 3.1, 3.2