19.14 SegmentQueryInfo

A SegmentQueryInfo object is a Lua dictionary table with three fields.

Key

Value

shape

Shape object found in a query.

t

Fractional distance (0 .. 1) from the start of the line segment to the intersection of the Shape.

n

Surface normal vector of the Shape at the intersection point.

This object also has the following helper routines that convert information in a SegmentQueryInfo object to world coordinates or an absolute distance along the line segment.

Related Topics