setViewpointAnimated

suspend fun setViewpointAnimated(viewpoint: Viewpoint, animationCurve: AnimationCurve, durationSeconds: Float = 3.0f): 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 local scene view.

animationCurve

The type of animation curve.

durationSeconds

The amount of time in seconds to move to the new viewpoint.