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.
float EqualDistanceThreshold[Get]
(Meters, World) The threshold below which distances to a interactable are treated as equal for the purposes of ranking.
Transform BlockCheckOrigin[Get]
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.
virtual TeleportInteractable ComputeCandidateComputeCandidateTiebreakerDelegate tiebreaker,
out TeleportHit hitPose )