Intersection constructor
Intersection({})
distance
– distance between the origin of the ray and the
intersection
point
– point of intersection, in world coordinates
face
– intersected face
faceIndex
– index of the intersected face
object
– the intersected object
uv
- U,V coordinates at point of intersection
uv2
- Second set of U,V coordinates at point of
intersection
normal
- interpolated normal vector at point of
intersection
instanceId
– The index number of the instance where the ray
intersects the InstancedMesh
Implementation
Intersection({
this.instanceId,
required this.distance,
this.distanceToRay,
this.point,
this.index,
this.face,
this.faceIndex,
this.object,
this.uv,
this.uv2
});