getCameraPosition method

  1. @override
Future<Vector3> getCameraPosition()
override

Get the camera position in world space.

Implementation

@override
Future<Vector3> getCameraPosition() async {
  final jsPosition = (await _shim.getCameraPosition().toDart).toDart;
  return Vector3(jsPosition[0].toDartDouble, jsPosition[1].toDartDouble,
      jsPosition[2].toDartDouble);
}