setViewpointWithDurationAndCurve method
- required Viewpoint viewpoint,
- required double durationSeconds,
- required AnimationCurve curve,
Pans or zooms the local scene view using animation to the specified viewpoint location asynchronously. The animation takes place over the specified duration. The animation curve defines the animation easing function.
Parameters:
viewpoint— The viewpoint that should be set on the local scene view.durationSeconds— The amount of time in seconds to move to the new viewpoint.curve— The type of animation curve.
Return Value: True if the viewpoint was successfully set, false otherwise.