[x3d-public] start timer at fraction 0 after scene loading
Andreas Plesch
andreasplesch at gmail.com
Wed Sep 6 22:01:45 PDT 2023
Another method apart from a ProximitySensor to start a timer without
user interaction after scene loading is to use two TimeSensors. The
first has loop=true and its only purpose is to trigger the second by
routing its cycleTime to the startTime of the second TimeSensor. The
first also stops itself by routing its cycleTime to its own stopTime.
Here is an example modified from the cycleTime NIST example:
https://rentry.co/x3d-startTimer
https://andreasplesch.github.io/Library/Viewer/dev.html?url=https://gist.githubusercontent.com/andreasplesch/3f7ea30b9860b6399c797c51e3235459/raw/118d65438f9cfdc152c01fc5a24a8eccec705511/startTimer.x3d
--
Andreas Plesch
Waltham, MA 02453
More information about the x3d-public
mailing list