So I am using this library https://dev.codemotionkids.com/libraries/diorama/docs/index.html
I wanted to use the function getOrbit().disable() to disable the camera rotation. However I face this error:
Uncaught TypeError: getOrbit(…).disable is not a function
at draw (sketch.js:166:14)
at _main.default.redraw (p5.js:70809:27)
at _draw (p5.js:63046:25)
If anybody, given that library understand where I am making the error, thank you. I also tried it in one of the examples provided but still had the same problem. If anybody knows how to fix it thank you
2
Answers
Found the solution it is:
From the source code, I can’t see any
enable()
ordisable()
,getOrbit()
only returns the value oforbit
. Is it possible for you to use the original OrbitControl from three.js?