I am learning how to use arcRotationCamera to limit the range of the camera’s movement and I am following this playground to learn how to use it.
When I import the function to limit the range. I am receiving undefined idleRotationSpeed. I have looked through the docs and I can’t find what is missing that is causing this error to show up. What is the reasoning for this? Here is my playground.
Try this - I took the parameter out of observable function so you are referencing the correct camera
scene.onBeforeCameraRenderObservable.add((camera) => {
TO
scene.onBeforeCameraRenderObservable.add(() => {
The function is no longer running now though. It is no longer restricted
omg I see the mistake I made. I declared two cameras
1 Like
Hello @Andrew2 just checking in if you need any more help with this