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

TeleportCandidateComputer Class

Extends MonoBehaviour
Simple strategy to compute the best teleport candidate.
It iterates the list of candidates and score them based on the distance along the arc, returning the closest to the origin of the arc. It also supports checking blockers between a logical position and the arc origin.

Properties

(Meters, World) The threshold below which distances to a interactable are treated as equal for the purposes of ranking.
Optional.
When assigned, the segment from this point to the arc origin will check for blockers. You can assign it to a physics hand to prevent users from teleporting when clipping the arc through a wall.

Protected Functions

virtual void Awake ( )

Member Functions

virtual TeleportInteractable ComputeCandidate
( IPolyline TeleportArc,
in InteractableSet interactables,
ComputeCandidateTiebreakerDelegate tiebreaker,
out TeleportHit hitPose )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon