|
VR Interaction Framework
1.0
A vr framework for the Oculus Quest
|
Helper class to interact with physical levers More...
Public Member Functions | |
| virtual void | OnLeverChange (float percentage) |
| virtual void | OnLeverDown () |
| Lever Moved to down position More... | |
| virtual void | OnLeverUp () |
| Lever moved to up position More... | |
Public Attributes | |
| AudioClip | SwitchOnSound |
| AudioClip | SwitchOffSound |
| float | MinDegrees = -45f |
| Minimum angle the Level can be rotated More... | |
| float | MaxDegrees = 45f |
| Maximum angle the Level can be rotated More... | |
| float | SwitchTolerance = 1.25f |
| Tolerance before considering a switch flipped On or Off Ex : 1.25 Tolerance means switch can be 98.25% up and considered switched on More... | |
| float | LeverPercentage |
| UnityEvent | onLeverDown |
| Called when lever was up, but is now in the down position More... | |
| UnityEvent | onLeverUp |
| Called when lever was down, but is now in the up position More... | |
| FloatEvent | onLeverChange |
| Called if the lever changes position at all More... | |
Helper class to interact with physical levers
|
virtual |
|
virtual |
Lever Moved to down position
|
virtual |
Lever moved to up position
| float BNG.Lever.LeverPercentage |
| float BNG.Lever.MaxDegrees = 45f |
Maximum angle the Level can be rotated
| float BNG.Lever.MinDegrees = -45f |
Minimum angle the Level can be rotated
| FloatEvent BNG.Lever.onLeverChange |
Called if the lever changes position at all
| UnityEvent BNG.Lever.onLeverDown |
Called when lever was up, but is now in the down position
| UnityEvent BNG.Lever.onLeverUp |
Called when lever was down, but is now in the up position
| AudioClip BNG.Lever.SwitchOffSound |
| AudioClip BNG.Lever.SwitchOnSound |
| float BNG.Lever.SwitchTolerance = 1.25f |
Tolerance before considering a switch flipped On or Off Ex : 1.25 Tolerance means switch can be 98.25% up and considered switched on