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

Setting a camera view programatically #135

Open
mrweix opened this issue Apr 12, 2017 · 0 comments
Open

Setting a camera view programatically #135

mrweix opened this issue Apr 12, 2017 · 0 comments

Comments

@mrweix
Copy link

mrweix commented Apr 12, 2017

How can I set the camera to a certain angle. Lets say I want to rotate the scene on button click by 45 degrees.

_camera.rotation._x=0;
 _camera.rotation._y=Math.PI/4;
    _camera.rotation._z=0;

did not work. Can somebody point me into a direction? Thanks!

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

1 participant