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

PressureSquishable Class

Extends MonoBehaviour

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.PressureSquishable._started

Protected Methods

Start ()
Signature
virtual void Oculus.Interaction.PressureSquishable.Start()
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.PressureSquishable.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.PressureSquishable.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.PressureSquishable.EndUse()
Returns
void