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 raycast 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

Specifying the Target

var target: ARRaycastQuery.Target

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

enum ARRaycastQuery.Target

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

var targetAlignment: ARRaycastQuery.TargetAlignment

The target's alignment with respect to gravity.