Delay initializing the 3D object positions
My World lens has a group of 3D objects floating around the user, so they feel like they surrounded by images.
The problem is that we have a 5 sec intro, and sometimes the User moves around or stands up during that time. That movement sometimes causes the geometry to be out of alignment when the main experience starts.
Anyone know how I can delay the initialization of the 3D scene? I used the Touch Blocker script to remove the Tap to Reinitialize function, because i would like the lens to automatically reinitialize after 5 seconds.
Thanks!
hi Peter Steiner
there is many ways to delay a function or enable some thing
you can simply use Behavior Script
feel free to change the trigger like when face found or what ever you like
and also change the Action with what you like
Also:
you can use a simple script to delay enable something
// Wait for 5 seconds before executing a function
var delayedEvent = script.createEvent("DelayedCallbackEvent");
delayedEvent.bind(function(eventData)
{
// what ever you pute here will be executed after 5s
print("delay is over");
});
// Start with a 5 second delay
delayedEvent.reset(6);
print("delay has started");
i hope that helped
Please if you need any help just let us know.
Cheers.
Thanks for the tutorial Just Me!
Cheers,
SirQu3ntin