- Home /
Question by
nobodiz123 · May 27, 2019 at 06:49 PM ·
rigidbodyvuforiaimage target
How do you reset rigid body scripts after an image target is lost?
I was wondering how I could reset the scripts that were running actions of a rigid body cube and sphere when the image target that triggers these actions is lost. Right now, when the image target is shown on the camera (AR/Vuforia), the rigid body script runs and moves the sphere. However, when the image target is lost, the rigid bodies continue to move and follow the script. I want to make it so that when the image target is lost, the rigid bodies reset themselves so that when the image target is re-detected, the whole script restarts from the beginning. What methods or classes do I need to edit? Do I edit the rigid body script or the default trackable event handler...
Comment