setCameraRotation method

  1. @override
Future<void> setCameraRotation(
  1. Quaternion quaternion
)
override

Rotate the camera by rads around the given axis. Note this is not persistent - any viewport navigation will reset the camera transform.

Implementation

@override
Future<void> setCameraRotation(Quaternion quaternion) async {
  final values = <JSNumber>[
    quaternion.x.toJS,
    quaternion.y.toJS,
    quaternion.z.toJS,
    quaternion.w.toJS
  ];
  await _shim.setCameraRotation(values.toJS).toDart;
}