First person camera controls. Call firstPerson(cam) where cam is a camera created in setup using createCamera()
npm install p5-first-person-camera
Add a first person camera to a WEBGL sketch to navigate the 3D scene with WASD/ArrowKeys and Mouse
View Demo
·
Report Bug
·
Request Feature
sh
createCanvas(700, 500, WEBGL)
`
3. Create a camera variable in Setup
`sh
cam1 = createCamera()
`
4. Call the firstPerson function in Draw passing the camera as an argument
`sh
firstPerson(cam1)
`
Usage
Example Scene
License
Distributed under the MIT License. See LICENSE.txt` for more information.