marcel ๐ต โ
๐งต#WebXRImageTracking statechanged
Needle Open in Discord
marcel ๐ต โ
Hi, which event are you refering to? If you use hideWhenTrackingIsLost you can simply detect tracking state with the onDisable or onEnable component methoda on your object that is being instantiated.
https://engine.needle.tools/docs/api/classes/Built-in_Components.WebXRImageTracking.html
gtk2k โ
I want to detect the "image-tracking" event.
gtk2k โ
<@272528485732450305> How can I write the code to get the position and rotation during image tracking?
marcel ๐ต โ
You just add a component to your object that is assigned in the WebXR Component (the tracked image) and get the worldPosition/Rotation/Quaternion from your object3d (this.gameObject in the component)