Skip to main content

PickOptionRay

Options for ray pick operation.

Hierarchy

Index

Properties

optionalisAABBIntersectionEnabled

isAABBIntersectionEnabled?: boolean

If true, an intersection test against the AABB is performed. This test also requires that isGeometryIntersectionTestEnabled === false or that no geometry intersection is found.

optionalisCenterIntersectionFallbackEnabled

isCenterIntersectionFallbackEnabled?: boolean

If true, fall back to use the object center as intersection point if no intersection point is otherwise found.

optionalisGeometryIntersectionEnabled

isGeometryIntersectionEnabled?: boolean

If undefined or true then a (computationally expensive) intersection test will be performed against geometry to find out exactly where intersection is.

optionalisNearbyRenderedObjectsIntersectionFallbackEnabled

isNearbyRenderedObjectsIntersectionFallbackEnabled?: boolean

If true and if no intersection is found, intersections on nearby rendered objects are looked for.

ray

ray: Ray

Ray in worldspace

optionaltextureSize

textureSize?: number

Texture size of gpu picking texture. (16 if not specified)

type

type: Ray

Type for use in discriminant union checks.