camdolly

Moves the camera position and target together, as a camera would on a dolly.

Category: Graphics > Formatting and Annotation

Syntax

camdolly(dx, dy, dz)

Moves the camera and its target by the given amounts, in camera coordinates.

camdolly(dx, dy, dz, 'fixtarget')

Moves only the camera; the target stays.

Description

A dolly shift changes the viewpoint without rotating the line of sight. With 'fixtarget', only the camera moves, so the view direction changes to keep looking at the same point.

Input arguments

dx, dy, dz
Distances to move to the right, up and toward the target.
'fixtarget'
Optional: keep the target in place.

Example

Move the camera up

surf(peaks(20))
camdolly(0, 2, 0)

In the app, the figure is drawn below the code.

See also

campos camtarget camorbit campan camzoom