Used for controlling parameters for hand modifiers - basically a collection of variables and static methods
More...
|
static IEnumerator | LerpSize (GameObject go, float targetSize, float time, Axis axis=Axis.none) |
| Changes the size of the given gameobject over a set time More...
|
|
static IEnumerator | LerpPosition (GameObject go, Vector3 targetPosition, float time) |
| Changes the position of the given gameobject over a set time More...
|
|
static Vector3 | XRProviderOffsetToVector3 (Leap.Unity.LeapXRServiceProvider camProv) |
| Utility function to return the offset of the given camera provider as a vector3 More...
|
|
static void | Vector3ToXRProvider (Leap.Unity.LeapXRServiceProvider camProv, Vector3 target) |
| Utility function to set the offset for the given camera provider from the given Vector More...
|
|
Used for controlling parameters for hand modifiers - basically a collection of variables and static methods
Definition at line 9 of file HandModifierManager.cs.
◆ Axis
◆ ActivateDisplacementHands()
void HandVR.HandModifierManager.ActivateDisplacementHands |
( |
float |
displacement | ) |
|
Activates the displacementPostProcessProvider and sets its displacement to the value
- Parameters
-
displacement | Value to set displacement to |
Definition at line 89 of file HandModifierManager.cs.
◆ DeactivateDisplacementHands()
void HandVR.HandModifierManager.DeactivateDisplacementHands |
( |
| ) |
|
◆ LerpCameraProvider() [1/2]
IEnumerator HandVR.HandModifierManager.LerpCameraProvider |
( |
float |
xTilt, |
|
|
float |
yOffset, |
|
|
float |
zOffset, |
|
|
float |
time |
|
) |
| |
Alternate method for setting displacement - sets camera offset to given values
- Parameters
-
xTilt | X rotation offset |
yOffset | Y offset for displacement |
zOffset | Z offset for displacement |
time | Time to set displacement |
- Returns
Definition at line 175 of file HandModifierManager.cs.
◆ LerpCameraProvider() [2/2]
IEnumerator HandVR.HandModifierManager.LerpCameraProvider |
( |
Vector3 |
targetPosition, |
|
|
float |
time |
|
) |
| |
Alternate method for setting displacement - sets camera offset to given values
- Parameters
-
targetPosition | Target position for camera offset |
time | Time to set displacement |
- Returns
Definition at line 187 of file HandModifierManager.cs.
◆ LerpPosition()
static IEnumerator HandVR.HandModifierManager.LerpPosition |
( |
GameObject |
go, |
|
|
Vector3 |
targetPosition, |
|
|
float |
time |
|
) |
| |
|
static |
Changes the position of the given gameobject over a set time
- Parameters
-
go | GameObject to adjust |
targetPosition | Size to eventually reach - Note that this adjsuts localPosition, not global |
time | Time to move gameobject |
- Returns
Definition at line 152 of file HandModifierManager.cs.
◆ LerpSize()
static IEnumerator HandVR.HandModifierManager.LerpSize |
( |
GameObject |
go, |
|
|
float |
targetSize, |
|
|
float |
time, |
|
|
Axis |
axis = Axis.none |
|
) |
| |
|
static |
Changes the size of the given gameobject over a set time
- Parameters
-
go | GameObject to adjust |
targetSize | Size to eventually reach |
time | Time to scale gameobject |
axis | Optional axis to scale along - leave empty for uniform scaling |
- Returns
Definition at line 112 of file HandModifierManager.cs.
◆ Vector3ToXRProvider()
static void HandVR.HandModifierManager.Vector3ToXRProvider |
( |
Leap.Unity.LeapXRServiceProvider |
camProv, |
|
|
Vector3 |
target |
|
) |
| |
|
static |
Utility function to set the offset for the given camera provider from the given Vector
- Parameters
-
camProv | Camera provider to set offset |
target | target offset as vector |
Definition at line 226 of file HandModifierManager.cs.
◆ XRProviderOffsetToVector3()
static Vector3 HandVR.HandModifierManager.XRProviderOffsetToVector3 |
( |
Leap.Unity.LeapXRServiceProvider |
camProv | ) |
|
|
static |
Utility function to return the offset of the given camera provider as a vector3
- Parameters
-
camProv | Camera provider to get offset |
- Returns
- Camera provider offset as a vector
Definition at line 216 of file HandModifierManager.cs.
◆ instance
◆ AxisToScale
Axis HandVR.HandModifierManager.AxisToScale |
|
get |
◆ InitCameraOffset
Vector3 HandVR.HandModifierManager.InitCameraOffset |
|
get |
◆ IsDisplacementFinished
bool HandVR.HandModifierManager.IsDisplacementFinished |
|
get |
◆ IsDisplacementReset
bool HandVR.HandModifierManager.IsDisplacementReset |
|
get |
◆ ScaleFactor
float HandVR.HandModifierManager.ScaleFactor |
|
get |
The documentation for this class was generated from the following file: