setViewpointCameraAnimated method

  1. @awaitNotRequired
Future<bool> setViewpointCameraAnimated({
  1. required Camera camera,
  2. double duration = 0.25,
})

Animates the display to the viewpoint specified by the given camera using the specified duration to arrive.

Parameters:

  • camera — The camera that should be set on the local scene view.
  • duration — The amount of time in seconds to move to the new viewpoint.

Return Value: True if the viewpoint was successfully set, false otherwise.