yangweigbh / Libgdx-CardBoard-Extension

Android CardBoard SDK development using Libgdx
67 stars 16 forks source link

Rotate around object #2

Open droidkie opened 9 years ago

droidkie commented 9 years ago

How to rotate around object like the Exhibit Cardboard Demo?

yangweigbh commented 9 years ago

hi droidkie:

i haven't used exhibit cardboard, and can't search it on google, but what do you mean rotate round, you rotate around object just moving your head, to my understanding

droidkie commented 9 years ago

hi yangweigbh:

Yes. You rotate around the object by moving your head. The object will just stay in front the whole time.

example: To look at the bottom of the exhibit object, one has to look up.

yangweigbh commented 9 years ago

the function you refer to is to moving the camera the target object meanwhile pointing at target object when head rotates, but the cardboard sdk only provide camera rotate around its original point, i think using current sdk, you have to implement the logic yourself, but it may be a bit difficult