Skip to content

Commit dc565a8

Browse files
Stephen HodgsonStephen Hodgson
authored andcommitted
Changed GazeStabilization field into property.
Organized variables.
1 parent e3124dc commit dc565a8

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

Assets/HoloToolkit/Input/Scripts/GazeManager.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ public partial class GazeManager : Singleton<GazeManager>
2323
[Tooltip("Select the layers raycast should target.")]
2424
public LayerMask RaycastLayerMask = Physics.DefaultRaycastLayers;
2525

26+
/// <summary>
27+
/// Checking enables SetFocusPointForFrame to set the stabilization plane.
28+
/// </summary>
29+
[Tooltip( "Checking enables SetFocusPointForFrame to set the stabilization plane." )]
30+
public bool SetStabilizationPlane = true;
31+
32+
/// <summary>
33+
/// Lerp speed when moving focus point closer.
34+
/// </summary>
35+
[Tooltip( "Lerp speed when moving focus point closer." )]
36+
public float LerpStabilizationPlanePowerCloser = 4.0f;
37+
38+
/// <summary>
39+
/// Lerp speed when moving focus point farther away.
40+
/// </summary>
41+
[Tooltip( "Lerp speed when moving focus point farther away." )]
42+
public float LerpStabilizationPlanePowerFarther = 7.0f;
43+
2644
/// <summary>
2745
/// Physics.Raycast result is true if it hits a hologram.
2846
/// </summary>
@@ -48,28 +66,10 @@ public partial class GazeManager : Singleton<GazeManager>
4866
/// </summary>
4967
public GameObject FocusedObject { get; private set; }
5068

51-
/// <summary>
52-
/// Checking enables SetFocusPointForFrame to set the stabilization plane.
53-
/// </summary>
54-
[Tooltip("Checking enables SetFocusPointForFrame to set the stabilization plane.")]
55-
public bool SetStabilizationPlane = true;
56-
57-
/// <summary>
58-
/// Lerp speed when moving focus point closer.
59-
/// </summary>
60-
[Tooltip("Lerp speed when moving focus point closer.")]
61-
public float LerpStabilizationPlanePowerCloser = 4.0f;
62-
63-
/// <summary>
64-
/// Lerp speed when moving focus point farther away.
65-
/// </summary>
66-
[Tooltip("Lerp speed when moving focus point farther away.")]
67-
public float LerpStabilizationPlanePowerFarther = 7.0f;
68-
6969
/// <summary>
7070
/// Helper class that stabilizes gaze using gravity wells
7171
/// </summary>
72-
public GazeStabilizer GazeStabilization;
72+
public GazeStabilizer GazeStabilization { get; private set; }
7373

7474
private Vector3 gazeOrigin;
7575
private Vector3 gazeDirection;

0 commit comments

Comments
 (0)