Intersection constructor

Intersection({
  1. int? instanceId,
  2. required double distance,
  3. double? distanceToRay,
  4. Vector3? point,
  5. int? index,
  6. Face? face,
  7. int? faceIndex,
  8. Object3D? object,
  9. Vector2? uv,
  10. Vector2? uv2,
})

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
});