RayCollision constructor

RayCollision({
  1. StructPointer<RayCollision>? op,
  2. bool hit = false,
  3. double distance = 0,
  4. Vector3? point,
  5. Vector3? normal,
})

Implementation

RayCollision({
  super.op,
  bool hit = false,
  double distance = 0,
  Vector3? point,
  Vector3? normal
}) :
  _hit = hit,
  _distance = distance,
  _point = point ?? .zero(),
  _normal = normal ?? .zero();