Skip to content

niPickRecord⚓︎

A nested class of NiPick that stores the results of previous picking operations for use by the game engine.

Properties⚓︎

color⚓︎

The vertex color at the point of intersection. The color is valid only when returnColor = true.

Returns:


distance⚓︎

The distance of the triangle intersection from the ray origin.

Returns:

  • result (number)

intersection⚓︎

The intersection point on the triangle. It's valid only if the intersectType was ni.pickIntersectType.triangleIntersect.

Returns:


normal⚓︎

The normal vector at the point of intersection. The normal is valid only when returnNormal = true in the parent niPick object.

Returns:


object⚓︎

Read-only. The object of the record.

Returns:


parent⚓︎

Read-only. The parent of the record.

Returns:


reference⚓︎

Read-only. Quick access to the associated object's reference.

Returns:


texture⚓︎

The texture coordinates at the point of intersection. The coordinates are valid only when returnTexture = true in the parent niPick object.

Returns:


triangleIndex⚓︎

The index of the intersected triangle.

Returns:

  • result (integer)

vertexIndex⚓︎

An array containing the 3 indices of the vertices that form the triangle at the intersection point. It's valid only if the intersectType was ni.pickIntersectType.triangleIntersect.

Returns:

  • result (integer[])