Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the rotation of an object based on the position of the camera using a marker #52

Closed
1260811 opened this issue Aug 14, 2017 · 1 comment

Comments

@1260811
Copy link

1260811 commented Aug 14, 2017

Hello, I want to display a text object but I wish to see it always like I was seeing it from the front. I want to see this object only when appear a special marker, too

@awe-media
Copy link
Owner

You can project a vector from the pov and get the world position of that, then move the object to that location on each tick. But a simpler way is probably just to create an html overlay and place HTML text with your numbers in the middle of the viewport.

Then you can use the ar_tracking_marker event as described here (#48 (comment)) to show/hide this overlay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants