Contenuto principale

zoomto

R2026b

Focus camera on actor, behavior, or analysis

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    zoomto(entity) focuses the camera for the current viewer on the specified actor, trajectory, or analysis.

    zoomto(v,entity) focuses the camera for viewer v on the specified actor, trajectory, or analysis.

    Input Arguments

    collapse all

    Camera target, specified as one of these options:

    • A vector of Actor, FixedTrajectoryBehavior, LOSAnalysis, or RayTraceAnalysis objects. The vector can include more than one type of object. When you specify more than one target, the camera moves to include all the targets.

    • "all", which moves the camera so that all scenario entities and custom scene data, such as terrain and buildings, are visible.

    Viewer, specified as a GlobeViewer object. When you do not specify a viewer, the function uses the current viewer.

    Version History

    Introduced in R2026b

    See Also

    Objects

    Functions