appoly / ARCore-Location

Allows items to be placed within the AR world with real-world GPS coordinates using ARCore.
https://www.appoly.co.uk/arcore-location/
MIT License
478 stars 154 forks source link

3d object always oriented to camera. #107

Open AmraKimmerian opened 4 years ago

AmraKimmerian commented 4 years ago

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?