API reference
API reference
Select your platform
No SDKs available
No versions available

PressureBreakable Class

Extends MonoBehaviour

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.PressureBreakable.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.PressureBreakable.Start()
Returns
void
Update ()
Signature
virtual void Oculus.Interaction.PressureBreakable.Update()
Returns
void

Methods

BeginUse ()
Invoked when a HandGrabUseInteractable's secondary interactivity becomes actionable (i.e., when the interactable is selected by a HandGrabUseInteractor).
This is an internally-invoked method and should not be called directly.
Signature
void Oculus.Interaction.PressureBreakable.BeginUse()
Returns
void
ComputeUseStrength ( strength )
Computes the "strength" of the secondary interactivity, where "strength" is a 0-to-1 value indicating whether the secondary interactivity is being lightly used or fully used, respectively.
In the "spray bottle" example, a "strength" of 0 would indicate that the spray lever is not depressed at all, whereas a "strength" of 1 indicates full depression of the lever.
Signature
float Oculus.Interaction.PressureBreakable.ComputeUseStrength(float strength)
Parameters
strength: float  A "raw strength" which the IHandGrabUseDelegate can use to inform its calculation of the true "strength"
Returns
float  The true "strength" of the secondary interactivity
EndUse ()
Invoked when a HandGrabUseInteractable's secondary interactivity ceases to be actionable (i.e., when the interactable is unselected).
This is an internally-invoked method and should not be called directly.
Signature
void Oculus.Interaction.PressureBreakable.EndUse()
Returns
void