superframe
superframe copied to clipboard
adapting controls for VR: camera keeps switching to the center on enter-vr
hi, I'm trying to adapt the orbit controls component to support VR.
however, I'm already failing at the very first step: disabling the automatic switch to the center of the scene when the "enter-vr" event is handled.
I thought, simply removing this line in the event handler should do the trick
el.getObject3D('camera').position.set(0, 0, 0);
but the camera is still set to the center when I enter VR.
then I went ahead and disabled a buch of other stuff - all to no avail. this behavior can easily be reproduced in the demo.. can someone tell me what I'm doing wrong? (or how to actually disable the swtich to the center?)