#Camera Vicinity Event

2 messages · Page 1 of 1 (latest)

sterile turtle
#

Happy 2024 y’all! Does Lens Studio provide an event (trigger) based on vicinity of the users phone to an AR object placed in 3d space?

mighty briar
#

Hi @sterile turtle, I wish you all the best in 2024!

You could use "Distance check" in the behavior script and add the camera and your object to check between. (screenshot added)

If you would like to code something yourself check out this video of @open coral https://www.youtube.com/watch?v=AXTZdUF_xic

Hope this helps!

This tutorial will show you how to measure distance and check for collisions between multiple objects. Let me know what you want to learn next!

Support me on:
https://patreon.com/xulipa
https://buymeacoffee.com/allanyde

Connect with me on:
https://twitter.com/_xulipa
https://instagram.com/_xulipa
https://tiktok.com/_xulipa

▶ Play video