Class InBetween
InBetween solver positions an object in-between two tracked transforms.
Inherited Members
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
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
Start()
Declaration
protected override void Start()