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

distance to move along the camera’s "local" x-axis.

y

distance to move along the camera’s "local" y-axis.

z

distance to move along the camera’s "local" z-axis.

Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Camera.js and open a pull request!

Related References