Howdy,
I’m using image targets to detect where I should manually spawn an object based on the image, then switching to hand tracking so I can pick up the object.
I want to know when the 3D object has gone off screen so that I can revert back to the image target scanning if they haven’t already picked up the item. Is there a simple way to detect this in 8th wall?
Cheers!
Sounds like the imagelost
event should do the trick?
It would be but unfortunately I wont have Webxr active after I have spawned the 3D model! I am switching to hand tracking once the image has been detected so that the player can grab the 3D model. If the model goes off screen during the hand tracking state, I need to know so I can switch back to the image target state.
What about calculating the dot product of the object based off of the cameras direction?