Reference move()

move()

Moves the camera along its "local" axes without changing its orientation.

The parameters, x, y, and z, are the distances the camera should move. For example, calling myCamera.move(10, 20, 30) moves the camera 10 pixels to the right, 20 pixels down, and 30 pixels backward in its "local" space.

Examples

Syntax

move(x, y, z)

Parameters

x
Number: distance to move along the camera’s "local" x-axis.
y
Number: distance to move along the camera’s "local" y-axis.
z
Number: distance to move along the camera’s "local" z-axis.

Related References