Store the object(s) you want to manipulate as variable(s)

Store the object(s) you want to manipulate as variable(s)

Topic Progress:

Store the object(s) you want to manipulate as variable(s)

In our case we want to manipulate a square when looking at it for a longer time or click it with the mouse. First, we have to make sure that we added a camera to our scene:

Then we have to give the object we would like to manipulate an id:

We now can access the id and read with the console.log commands all properties. The console.log command we use only to make sure we have no typing errors:

Now we are ready to add the Event Listeners!


Comments are closed.