![]() |
AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
|
InBetween solver positions an object in-between two tracked transforms. More...
Public Member Functions | |
| override void | SolverUpdate () |
| void | AttachSecondTransformToNewTrackedObject () |
| This should only be called from the SolverInBetweenEditor to cause the secondary SolverHandler to reattach this solver. More... | |
Public Member Functions inherited from HoloToolkit.Unity.Solver | |
| void | SolverUpdateEntry () |
| Tracks lifetime of the solver, disabling it when expired, and finally runs the orientation update logic More... | |
| virtual void | SnapTo (Vector3 position, Quaternion rotation) |
| SnapTo may be used to bypass smoothing to a certain position if the object is teleported or spawned More... | |
| virtual void | SnapGoalTo (Vector3 position, Quaternion rotation) |
| SnapGoalTo only sets the goal orientation. Not really useful. More... | |
| virtual void | AddOffset (Vector3 offset) |
| void | UpdateWorkingToGoal () |
| Updates the Working orientation (which may be the object, or the shared orientation) to the goal, with smoothing accounted for More... | |
| void | UpdateWorkingPosToGoal () |
| Updates only the working position to goal with smoothing More... | |
| void | UpdateWorkingRotToGoal () |
| Updates only the working rotation to goal with smoothing More... | |
| void | UpdateWorkingScaleToGoal () |
| Updates only the working scale to goal with smoothing More... | |
Protected Member Functions | |
| void | Start () |
Protected Member Functions inherited from HoloToolkit.Unity.Solver | |
| virtual void | Awake () |
| virtual void | OnEnable () |
| Typically when a solver becomes enabled, it should update its internal state to the system, in case it was disabled far away More... | |
| void | UpdateTransformToGoal () |
| Updates all object orientations to the goal orientation for this solver, with smoothing accounted for (smoothing may be off) More... | |
Properties | |
| float | PartwayOffset [get, set] |
| Distance along the center line the object will be located. 0.5 is halfway, 1.0 is at the second transform, 0.0 is at the first transform. More... | |
| SolverHandler.TrackedObjectToReferenceEnum | TrackedObjectForSecondTransform [get, set] |
| 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. More... | |
Properties inherited from HoloToolkit.Unity.Solver | |
| Vector3 | WorkingPos [get, set] |
| WorkingPos automatically uses the shared position if the solver is set to use the 'linked transform'. UpdateLinkedTransform may be set to false, and a solver will automatically update the object directly, and not inherit work done by other solvers to the shared position More... | |
| Quaternion | WorkingRot [get, set] |
| Rotation version of WorkingPos More... | |
| Vector3 | WorkingScale [get, set] |
| Scale version of WorkingPos More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from HoloToolkit.Unity.Solver | |
| static Vector3 | SmoothTo (Vector3 source, Vector3 goal, float deltaTime, float lerpTime) |
| Lerps Vector3 source to goal, handles lerpTime of 0 More... | |
| static Quaternion | SmoothTo (Quaternion source, Quaternion goal, float deltaTime, float lerpTime) |
| Slerps Quaternion source to goal, handles lerpTime of 0 More... | |
Public Attributes inherited from HoloToolkit.Unity.Solver | |
| bool | UpdateLinkedTransform = false |
| float | MoveLerpTime = 0.1f |
| float | RotateLerpTime = 0.1f |
| float | ScaleLerpTime = 0 |
| bool | MaintainScale = true |
| Vector3 | GoalPosition |
| Quaternion | GoalRotation |
| Vector3 | GoalScale |
| bool | Smoothing = true |
| float | Lifetime = 0 |
Protected Attributes inherited from HoloToolkit.Unity.Solver | |
| SolverHandler | solverHandler |
InBetween solver positions an object in-between two tracked transforms.
Definition at line 11 of file SolverInBetween.cs.
| void HoloToolkit.Unity.SolverInBetween.AttachSecondTransformToNewTrackedObject | ( | ) |
This should only be called from the SolverInBetweenEditor to cause the secondary SolverHandler to reattach this solver.
Definition at line 107 of file SolverInBetween.cs.
|
virtual |
Implements HoloToolkit.Unity.Solver.
Definition at line 68 of file SolverInBetween.cs.
|
protected |
Definition at line 60 of file SolverInBetween.cs.
|
getset |
Distance along the center line the object will be located. 0.5 is halfway, 1.0 is at the second transform, 0.0 is at the first transform.
Definition at line 22 of file SolverInBetween.cs.
|
getset |
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.
Definition at line 36 of file SolverInBetween.cs.