VRDeviceOrientationArcRotateCamera camera sould folow ball and distace between this camera
and ball should be always 7. BUT _camera.radius = _cameraDistance; DOES NOT WORK !
Can anybody help/suggest what is the problem why _camera.radius = _cameraDistance does not work?
If camera is ArcCamera than radius in render loops work OK, but VRDeviceOrientationArcRotateCamera
is not working. VRDeviceOrientationArcRotateCamera behave different than ArcCamera.
Is there any bug or what should be the difference/problem?
I would like to have mouse scroll to set distance between camera and ball.
But I would like that ArcCamera and VRDeviceOrientationArcRotateCamera sould behave same way.
Scroll Mouse listener strange…
I would like that only mouse scroll can change distance between ball and camera. And than distance
should remain and camera sould folow ball (settarget of camera is ball).
F12 browser debug is behaving weird if we refresh playground . If we refresh than log is logged 2 times
if we refresh again it logs 3 times and so on…
Why is that???
???
I’m not certain why you want to place your event listener outside of your scene. This will work, but can cause issues. The reason why your mouse scroll value was updated back to the original camera position, was that you were setting a RegisterAfterRender function calling a variable of 10 set globally outside your render loop.