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

PositionPinningConfig Class

Position pinning is applied to surface motion during drag, which is useful for adding a sense of friction to initial drag motion.
This configuration can vary by instance and can be set either through the UnityEditor or by programmatically setting the PokeInteractable.PositionPinning property.

Fields

Sets whether or not this config block is enabled.
If disabled, all values will be ignored and default behavior will apply.
The distance over which a PokeInteractor drag motion will be remapped to the surface (in meters).
If the hand is detected to move along this surface less than this value, those movements will be ignored; this can help to eliminate noise and reduce the degree to which poking feels "slippery."
The PokeInteractor position will be remapped along this curve from the initial touch point to the current position on surface.
In cases where a resync is necessary between the pinned position and the unpinned position, this time-based curve will be used.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon