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

3d object always oriented to camera. #107

Open
AmraKimmerian opened this issue Dec 29, 2019 · 0 comments
Open

3d object always oriented to camera. #107

AmraKimmerian opened this issue Dec 29, 2019 · 0 comments

Comments

@AmraKimmerian
Copy link

AmraKimmerian commented Dec 29, 2019

I use lib to show 3d object, but object all time rotated one side to camera, regardless of device position. If i chaned my position - object turned to me same side. I need to object has fixed orientation, for example always to north, or to needed azimuth.
I tried to set world and local rotation to our renderable node like this:
node.setWorldRotation(Quaternion.axisAngle(new Vector3(0.0f, 1.0f, 0.0f), 45));|
but it not works, may be because of
marker.node.setLocalPosition(Vector3.zero()); in LocationScene code.

Is there any way to set needed orientation?

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