mind-ar-js
mind-ar-js copied to clipboard
Get target image orientation
trafficstars
How can I get target image orientation (or rotation) in event targetFound? My task is to display the scene always with the correct orientation, even if the target image is pasted incorrectly. I plan to determine if the target image is upside down and rotate the scene accordingly.
not entirely sure what is "correct orientation", but I guess you can try to use the anchor position and rotation properties to compute something for your use case.
Thanks for your reply. I will try to explain through an illustration
just rotate your object 90 deg?