Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use OrbitControls or TrackballControls? #125

Open
xinnai opened this issue Dec 27, 2018 · 2 comments
Open

Can I use OrbitControls or TrackballControls? #125

xinnai opened this issue Dec 27, 2018 · 2 comments

Comments

@xinnai
Copy link

xinnai commented Dec 27, 2018

I tryed to import controls using :
var orbitControls = new THREE.OrbitControls( this.camera,this.renderer.domElement);
so that I can rotate,zoom or pan on the THREE models like the "Teaport", but it doesn't work.
Is there any solutions?

@blairmacintyre
Copy link
Contributor

Yes, that won't work. The typical orbit (and other) camera controls will try to move the camera; any webxr setup will need the camera to follow the position of the real-world camera (HMD or phone).

You need to use a control that modifies a Object3D that is not the camera.

@sikandernoori
Copy link

Has Anybody found Solution to it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants