CameraComponent3D constructor

CameraComponent3D({
  1. double fovY = 60,
  2. Vector3? position,
  3. Quaternion? rotation,
  4. Vector3? target,
  5. Vector3? up,
  6. CameraProjection projection = CameraProjection.perspective,
  7. World3D? world,
  8. Viewport? viewport,
  9. Viewfinder? viewfinder,
  10. Component? backdrop,
  11. List<Component>? hudComponents,
})

CameraComponent3D is a component through which a World3D is observed.

Implementation

CameraComponent3D({
  this.fovY = 60,
  Vector3? position,
  Quaternion? rotation,
  Vector3? target,
  Vector3? up,
  this.projection = CameraProjection.perspective,
  World3D? super.world,
  super.viewport,
  super.viewfinder,
  super.backdrop,
  super.hudComponents,
}) : position = position?.clone() ?? Vector3.zero(),
     rotation = rotation ?? Quaternion.identity(),
     target = target?.clone() ?? Vector3(0, 0, -1),
     _up = up?.clone() ?? Vector3(0, 1, 0);