Class PokeThresholdData
The settings used to fine tune the vector and offsets which dictate how the poke interaction will be evaluated.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[Serializable]
public class PokeThresholdData
Properties
enablePokeAngleThreshold
When enabled, the filter will check that a poke action is started and moves within the poke angle threshold along the poke direction axis.
Declaration
public bool enablePokeAngleThreshold { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
interactionDepthOffset
Distance along the poke interactable interaction axis that allows for a poke to be triggered sooner/with less precision.
Declaration
public float interactionDepthOffset { get; set; }
Property Value
Type | Description |
---|---|
float |
pokeAngleThreshold
The maximum allowed angle (in degrees) from the poke direction axis that will trigger a select interaction. Only used when enablePokeAngleThreshold is enabled.
Declaration
public float pokeAngleThreshold { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
The angle must be greater than or equal to 0 degrees and less than 90 degrees.
See Also
pokeDirection
The axis along which the poke interaction will be constrained.
Declaration
public PokeAxis pokeDirection { get; set; }
Property Value
Type | Description |
---|---|
PokeAxis |
See Also
Methods
GetSelectEntranceVectorDotThreshold()
This returns the dot-product threshold value based on the pokeAngleThreshold configured. Only used when enablePokeAngleThreshold is enabled.
Declaration
public float GetSelectEntranceVectorDotThreshold()
Returns
Type | Description |
---|---|
float | A float value representing a dot-product threshold value. |