freshfork / p5.EasyCam

A p5.js library for easy 3D camera control.
https://freshfork.github.io/p5.EasyCam
MIT License
136 stars 33 forks source link

Can't use smooth() after creating cam #6

Closed jonek closed 4 years ago

jonek commented 4 years ago

When I call smooth() [1] after I created the camera, mouse interactions do not work anymore.

When I call smooth() before creating the camera, everything is working as expected.

Here is an example in the p5 editor.

[1] https://p5js.org/reference/#/p5/smooth

jwdunn1 commented 4 years ago

Update the example sketch to use the latest version of p5. (i.e. update index.html to point at: https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.js) Then smooth() works before or after creating the camera.

jonek commented 4 years ago

Thanks! This resolved the issue.