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:
result
(niPackedColor)
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:
result
(tes3vector3)
normal
⚓︎
The normal vector at the point of intersection. The normal is valid only when returnNormal = true
in the parent niPick object.
Returns:
result
(tes3vector3)
object
⚓︎
Read-only. The object of the record.
Returns:
result
(niAVObject)
parent
⚓︎
Read-only. The parent of the record.
Returns:
result
(niAVObject)
reference
⚓︎
Read-only. Quick access to the associated object's reference.
Returns:
result
(tes3reference)
texture
⚓︎
The texture coordinates at the point of intersection. The coordinates are valid only when returnTexture = true
in the parent niPick object.
Returns:
result
(tes3vector2)
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[])