p5.Camera move() Method
The move() method of p5.Camera in p5.js is used to move the camera along its local axes by the specified amount. It maintains the current camera orientation while moving.
move( x, y, z )
Parameters: This method accepts three parameters as mentioned above and described below:
- x: It is a number that denotes the amount to move the camera along its left-right axis.
- y: It is a number that denotes the amount to move the camera along its up-down axis.
- z: It is a number that denotes the amount to move the camera along its forward-backward axis.
The example below illustrates the move() method in p5.js:
Online editor: https://editor.p5js.org/
Environment Setup: https://www.geeksforgeeks.org/p5-js-soundfile-object-installation-and-methods/
My Personal Notes arrow_drop_up
Please Login to comment...