Init position world lens
Hello. Once again I need your help.
I playing with the world lens. I put a button when i click the model appears. It's ok.
But if I open my lens, turn of 90° for exemple and then i click on the button. the model appears but at the position where I open the lens and not at the position where i click on the button. I don't know if it's clear ... I would like to know if we can init he position when we click on the button. I attached my model maybe more clear.
A video to show you https://youtu.be/GxfWKPE61Fs
A the model that I used https://we.tl/t-4GFlzKWoVG
By advance thanks for your help!
We have same problems where we have multiple objects that needs to be set on the ground when you push different buttons for a game.
Lens team must know how to reset world position on an object by tap event?
Hi Takinours, Erik,
You can use the resetEvent function on the Device Tracking Component
// @input Component.DeviceTracking deviceTrackingComponent
script.deviceTrackingComponent.resetTracking(new vec2(0.5, 0.5));
In this script, the position of the object will reset as if the user has tapped in the middle of the screen. Take a look at the device tracking API page for more information.
Can't wait to see what you both come up with
Cheers,
Jonathan
Thanks Jonathan! I think I found