setCameraFov method

  1. @override
Future setCameraFov(
  1. double degrees,
  2. double width,
  3. double height
)
override

Sets the current scene camera to the glTF camera under name in entity.

Implementation

@override
Future setCameraFov(double degrees, double width, double height) async {
  _module.ccall(
      "set_camera_fov",
      "void",
      ["void*".toJS, "float".toJS, "float".toJS].toJS,
      [_viewer!, degrees.toJS, (width / height).toJS].toJS,
      null);
}