Intersection constructor

Intersection({
  1. int? instanceId,
  2. required double distance,
  3. double? distanceToRay,
  4. Vector3? point,
  5. Vector3? normal,
  6. int? index,
  7. Face? face,
  8. int? faceIndex,
  9. Object3D? object,
  10. Vector2? uv,
  11. Vector2? uv1,
  12. Vector2? uv2,
  13. Vector3? barycoord,
  14. int batchId = 0,
})

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.normal,
  this.index,
  this.face,
  this.faceIndex,
  this.object,
  this.uv,
  this.uv1,
  this.uv2,
  this.barycoord,
  this.batchId = 0
});