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.
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 ofmarker.node.setLocalPosition(Vector3.zero());
in LocationScene code.Is there any way to set needed orientation?