Enumeration

ARRaycastQuery.TargetAlignment

A specification that indicates a target's alignment with respect to gravity.

Declaration

enum TargetAlignment : Int

Overview

A raycast ignores potential targets with an alignment different than the one you specify in the ray-cast query.

Topics

Choosing a Target Alignment

case any

The case that indicates a target may be aligned in any way with respect to gravity.

case horizontal

The case that indicates a target is aligned horizontally with respect to gravity.

case vertical

The case that indicates a target is aligned vertically with respect to gravity.

See Also

Getting the Target

var target: ARRaycastQuery.Target

A plane type that allows the ray to terminate if it's encountered.

enum ARRaycastQuery.Target

The types of plane you allow a raycast to intersect with.

var targetAlignment: ARRaycastQuery.TargetAlignment

The target's alignment with respect to gravity.