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

RecoilAssistConfig Class

Recoil assist will affect unselection and reselection criteria.

Overview

Data Fields

bool
Enabled[Get]
bool
If true, DynamicDecayCurve will be used to decay the max distance based on the normal velocity.
AnimationCurve
A function of the normal movement ratio to determine the rate of decay.
bool
Expand recoil window when fast Z motion is detected.
float
When average velocity in interactable Z is greater than min speed, the recoil window will begin expanding.
float
Full recoil window expansion reached at this speed.
float
Window will expand by this distance when Z velocity reaches max speed.
float
Window will contract toward ExitDistance at this rate (in meters) per second when velocity lowers.
float
The distance over which a poke interactor must surpass to trigger an early unselect, measured along the normal to the surface (in meters).
float
When in recoil, the distance which a poke interactor must surpass to trigger a subsequent select, measured along the negative normal to the surface (in meters).

Details

Detailed Description

Useful for triggering unselect in response to a smaller motion in the negative direction from a surface.

Fields

bool Oculus.Interaction.PokeInteractable.RecoilAssistConfig.Enabled
No description available.
bool Oculus.Interaction.PokeInteractable.RecoilAssistConfig.UseDynamicDecay
If true, DynamicDecayCurve will be used to decay the max distance based on the normal velocity.
AnimationCurve Oculus.Interaction.PokeInteractable.RecoilAssistConfig.DynamicDecayCurve
A function of the normal movement ratio to determine the rate of decay.
bool Oculus.Interaction.PokeInteractable.RecoilAssistConfig.UseVelocityExpansion
Expand recoil window when fast Z motion is detected.
float Oculus.Interaction.PokeInteractable.RecoilAssistConfig.VelocityExpansionMinSpeed
When average velocity in interactable Z is greater than min speed, the recoil window will begin expanding.
float Oculus.Interaction.PokeInteractable.RecoilAssistConfig.VelocityExpansionMaxSpeed
Full recoil window expansion reached at this speed.
float Oculus.Interaction.PokeInteractable.RecoilAssistConfig.VelocityExpansionDistance
Window will expand by this distance when Z velocity reaches max speed.
float Oculus.Interaction.PokeInteractable.RecoilAssistConfig.VelocityExpansionDecayRate
Window will contract toward ExitDistance at this rate (in meters) per second when velocity lowers.
float Oculus.Interaction.PokeInteractable.RecoilAssistConfig.ExitDistance
The distance over which a poke interactor must surpass to trigger an early unselect, measured along the normal to the surface (in meters).
float Oculus.Interaction.PokeInteractable.RecoilAssistConfig.ReEnterDistance
When in recoil, the distance which a poke interactor must surpass to trigger a subsequent select, measured along the negative normal to the surface (in meters).
Did you find this page helpful?