simon-heinen / droidar

DroidAR Mobile Locationbased Augmented Reality Framework for Android
GNU General Public License v3.0
225 stars 274 forks source link

Camera GPS Position #13

Closed ThreeMarks closed 10 years ago

ThreeMarks commented 10 years ago

How do I update the GPS position of the camera?

I see a method to get it's GPS position, but no set. I also see in the demos that the camera can be moved via buttons (Set Pos A, Set Pos B, etc).

How do I achieve this?

EDIT: I'd like the camera to move as the user moves around (in the real world with her device). What's the most appropriate solution for this?

simon-heinen commented 10 years ago

you can do it like this:

Vec pos = newPos.getVirtualPosition( EventManager.getInstance().getZeroPositionLocationObject()); camera.setNewPosition(pos);

i will add this method to the GLCamera class as camera.setGpsPos(GeoObj newPos)