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

PokeInteractor Class

Defines a near-poke interaction that is driven by a near-distance proximity computation and a raycast between the position recorded across two frames against a target surface.

Properties

Vector3 ClosestPoint[Get]
Vector3 TouchPoint[Get]
Vector3 TouchNormal[Get]
float Radius[Get]
Vector3 Origin[Get]
bool IsPassedSurface[Get]

Fields

Action< bool > WhenPassedSurfaceChanged[Get]

Member Functions

Sets a function that returns the current time in seconds.
float MinPokeDepth
( PokeInteractable interactable )
float ComputeDepth
( PokeInteractable interactable,
Vector3 point )
Sets all required values for a poke interactor on a dynamically instantiated GameObject.
Sets a point transform for a dynamically instantiated GameObject.
Sets a radius for a dynamically instantiated GameObject.
Sets a touch release threshold for a dynamically instantiated GameObject.
Sets an equal distance threshold for a dynamically instantiated GameObject.
Obsolete, replaced by SetTimeProvider().

Protected Functions

override void Awake ( )
override void Start ( )
override void DoPreprocess ( )
override void DoPostprocess ( )
override bool ComputeShouldSelect ( )
override bool ComputeShouldUnselect ( )
override void DoHoverUpdate ( )
override PokeInteractable ComputeCandidate ( )
override int ComputeCandidateTiebreaker
override void InteractableSelected
( PokeInteractable interactable )
override void HandleDisabled ( )
virtual override Pose ComputePointerPose ( )
virtual bool SurfaceUpdate
( PokeInteractable interactable )
virtual bool ShouldCancel
( PokeInteractable interactable )
virtual bool ShouldRecoil
( PokeInteractable interactable )
override void DoSelectUpdate ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon