Class MoveObjByEyeGaze
Implements
IMixedRealitySpeechHandler
IMixedRealitySourceStateHandler
IMixedRealityPointerHandler
IMixedRealityHandJointHandler
Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking
Assembly: cs.temp.dll.dll
Syntax
public class MoveObjByEyeGaze : MonoBehaviour, IMixedRealitySpeechHandler, IMixedRealitySourceStateHandler, IMixedRealityPointerHandler, IMixedRealityHandJointHandler
Fields
LocalMinMax_X
Declaration
public Vector2 LocalMinMax_X
Field Value
Type | Description |
---|---|
Vector2 |
LocalMinMax_Y
Declaration
public Vector2 LocalMinMax_Y
Field Value
Type | Description |
---|---|
Vector2 |
LocalMinMax_Z
Declaration
public Vector2 LocalMinMax_Z
Field Value
Type | Description |
---|---|
Vector2 |
PlacementSurface
Declaration
public PlacementSurfaces PlacementSurface
Field Value
Type | Description |
---|---|
PlacementSurfaces |
Methods
Angle_InitialGazeToCurrGazeDir()
Compute the angle between the initial (when selecting the target) and current eye gaze direction.
Declaration
public float Angle_InitialGazeToCurrGazeDir()
Returns
Type | Description |
---|---|
Single |
Angle_ToCurrHitTarget(GameObject)
Compute angle between target center ( OR original targeting location??? ) and current targeting direction
Declaration
public float Angle_ToCurrHitTarget(GameObject gobj)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gobj |
Returns
Type | Description |
---|---|
Single |
ConstrainMovement()
Declaration
public void ConstrainMovement()
DragAndDrop_Finish()
Finalize placing the currently selected target.
Declaration
public void DragAndDrop_Finish()
DragAndDrop_Start()
Begin with the selection and movement of the focused target.
Declaration
public void DragAndDrop_Start()
MoveTargetBy(Vector3)
Declaration
public void MoveTargetBy(Vector3 delta)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | delta |
MoveTargetTo(Vector3)
Declaration
public void MoveTargetTo(Vector3 destination)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | destination |
OnDrop_SnapToClosestDecimal()
Declaration
public void OnDrop_SnapToClosestDecimal()
Implements
IMixedRealitySpeechHandler
IMixedRealitySourceStateHandler
IMixedRealityPointerHandler
IMixedRealityHandJointHandler