setViewpointAnimated

suspend fun setViewpointAnimated(viewpoint: Viewpoint, animationCurve: AnimationCurve, duration: Duration = 3.seconds): Result<Boolean>

Pans or zooms the local scene view using animation to the specified viewpoint location. The animation takes place over the specified duration. The animation curve defines the animation easing function.

Return

a Result of true if the viewpoint was successfully set, false otherwise.

Since

300.0.0

Parameters

viewpoint

The viewpoint that should be set on the view.

animationCurve

The type of animation curve.

duration

The amount of time to move to the new viewpoint.