mistic100 / Photo-Sphere-Viewer

A JavaScript library to display 360° sphere panoramas.
https://photo-sphere-viewer.js.org
MIT License
1.86k stars 672 forks source link

Getting poseHeading from Viewer #1381

Closed Rusachok closed 1 month ago

Rusachok commented 1 month ago

Describe your problem

We can get the current values of the yaw and pitch parameters from the viewer. How do we get the current value of poseHeading? This is very important for us. Maybe it is possible to calculate it somehow?

Online demo URL

No response

Photo Sphere Viewer version

5.8.3

Plugins loaded

No response

Additional context

No response

mistic100 commented 1 month ago

poseHeading is not a variable, it is a property of the panorama, you should know the value because it is provided by you.

Thevalue you are looking for is probably a simple subtraction between yaw and the configured poseHeading

Rusachok commented 1 month ago

Thanks!