mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0releases/2.3.0releases/2.4.0releases/2.5.0releases/2.5.1releases/2.5.2releases/2.5.3

We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class InBetween

    InBetween solver positions an object in-between two tracked transforms.

    Inheritance
    Object
    Solver
    InBetween
    Inherited Members
    Solver.UpdateLinkedTransform
    Solver.MoveLerpTime
    Solver.RotateLerpTime
    Solver.ScaleLerpTime
    Solver.Smoothing
    Solver.SolverHandler
    Solver.GoalPosition
    Solver.GoalRotation
    Solver.GoalScale
    Solver.WorkingPosition
    Solver.WorkingRotation
    Solver.WorkingScale
    Solver.Awake()
    Solver.OnEnable()
    Solver.OnDestroy()
    Solver.SolverUpdateEntry()
    Solver.SnapTo(Vector3, Quaternion, Vector3)
    Solver.SnapGoalTo(Vector3, Quaternion, Vector3)
    Solver.SnapTo(Vector3, Quaternion)
    Solver.SnapGoalTo(Vector3, Quaternion)
    Solver.AddOffset(Vector3)
    Solver.SmoothTo(Vector3, Vector3, Single, Single)
    Solver.SmoothTo(Quaternion, Quaternion, Single, Single)
    Solver.UpdateTransformToGoal()
    Solver.UpdateWorkingToGoal()
    Solver.UpdateWorkingPositionToGoal()
    Solver.UpdateWorkingRotationToGoal()
    Solver.UpdateWorkingScaleToGoal()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Solvers
    Assembly: cs.temp.dll.dll
    Syntax
    public class InBetween : Solver

    Properties

    PartwayOffset

    Distance along the center line the object will be located. 0.5 is halfway, 1.0 is at the first transform, 0.0 is at the second transform.

    Declaration
    public float PartwayOffset { get; set; }
    Property Value
    Type Description
    Single

    SecondTrackedObjectType

    Tracked object to calculate position and orientation for the second object. If you want to manually override and use a scene object, use the TransformTarget field.

    Declaration
    public TrackedObjectType SecondTrackedObjectType { get; set; }
    Property Value
    Type Description
    TrackedObjectType

    SecondTransformOverride

    This transform overrides any Tracked Object as the second point for the In Between

    Declaration
    public Transform SecondTransformOverride { get; set; }
    Property Value
    Type Description
    Transform

    TrackedObjectForSecondTransform

    Tracked object to calculate position and orientation for the second object. If you want to manually override and use a scene object, use the TransformTarget field.

    Declaration
    [Obsolete("Use SecondTrackedObjectType property instead")]
    public TrackedObjectType TrackedObjectForSecondTransform { get; set; }
    Property Value
    Type Description
    TrackedObjectType

    Methods

    OnValidate()

    Declaration
    protected void OnValidate()

    SolverUpdate()

    Should be implemented in derived classes, but Solver can be used to flush shared transform to real transform

    Declaration
    public override void SolverUpdate()
    Overrides
    Solver.SolverUpdate()

    Start()

    Declaration
    protected override void Start()
    Overrides
    Solver.Start()
    In This Article
    • Properties
      • PartwayOffset
      • SecondTrackedObjectType
      • SecondTransformOverride
      • TrackedObjectForSecondTransform
    • Methods
      • OnValidate()
      • SolverUpdate()
      • Start()
    Back to top Generated by DocFX