Pannellum: Get Yaw and Pitch on mouse click

Created on 29 Dec 2019  Â·  3Comments  Â·  Source: mpetroff/pannellum

Hi there,

I tried to get Yaw and Pich using a call to viewer.mouseEventToCoords(e), as a result I got numbers array that doesn't seem to be right

As I read other comments/issues I understand I need to get the Developer version,

How do I get Developer version ?

question

All 3 comments

i use mouseEventToCoords,it work for me

i found another config —— hotSpotDebug

When true, the mouse pointer’s pitch and yaw are logged to the console when the mouse button is clicked.

maybe it useful to you

The function should return an array. Here's an example:

var viewer = pannellum.viewer(...);
viewer.on('mousedown', function(event) {
    // coords[0] is pitch, coords[1] is yaw
    var coords = viewer.mouseEventToCoords(event);
    // Do something with the coordinates here...
});

There is no "developer version."

Was this page helpful?
0 / 5 - 0 ratings

Related issues

littlee picture littlee  Â·  8Comments

tomas-nz picture tomas-nz  Â·  4Comments

FlokiTV picture FlokiTV  Â·  6Comments

clarknelson picture clarknelson  Â·  5Comments

exotfboy picture exotfboy  Â·  3Comments