Start a new topic

Getting marker orientation on ImageDrawable.onDragChanged?

 I'm trying to make an interactive marker that can be swiped left and right (ala Tinder)

I'm using the DragBegan, DragEnded and DragChanged events of the ImageDrawable class.


My problem is that they only give you screen-space x, y coordinates. I need to know if the marker itself is sideways or upside-down (even if the phone is the right way up).


Is there any way to get the marker's or the imageDrawable's orientation on the screen?


Anything like a transformation matrix or rotation values with respect to the phone's camera would help me?


Hi,


there is currently no way to get a transformation matrix or a rotation with respect to the phone's camera in the JS SDK, it would be available in the Native SDK.


Best Regards,

Alex

Any ideas?

Login or Signup to post a comment