Solution, Part 1

Solution, Part 1

Topic Progress:

First part of the Solution

First we place a box within the <a-scene>. The box has the id start_icon. When clicking on it, the animation should start:

Now we need a <script> Tag in the <head> of the HTML and have to wait until the DOM (Document Object Model) has loaded:

When the animation has loaded we have to wait until the user clicks on the box with the id start_icon:

When the user has clicked we send (emit) a message to the parent element (<a-camera> with the id camera) of the animation:

It is our decision how to call the message. In the example it is called cmd_start1.

In the next step we need to define the animation which begins when the message cmd_start1 is received.









Comments are closed.