pannellum icon indicating copy to clipboard operation
pannellum copied to clipboard

Horizon Pitch/Roll functions for each scene

Open T2brozz opened this issue 3 years ago • 1 comments

Hey is it possible to use setHorizonPitch ,getHorizonPitch , etc. for individual scenes instead of overwriting the values in default?

T2brozz avatar Sep 09 '21 20:09 T2brozz

The setHorizonPitch function (like setPitch, setYaw, etc.) does not overwrite the default value; it sets the current value. When you change the scene, the value is loaded from the configuration. Reloading the same scene after calling setHorizonPitch will reset the horizon pitch to that in the configuration. If you want to more permanently change a value, you need to replace the scene configuration using addScene.

mpetroff avatar Sep 18 '21 15:09 mpetroff