November 2017
Beginner
294 pages
6h 55m
English
When we save this file and view it again in our VR browser, we will see the pot turn once. Note that we may not see the startup, and also note that when the pot finishes turning, it does so gracefully instead of being a computer animated 'smash stop':

This is fantastic, but the pot turns and then stops. We might want it to continue to turn. So let's do that!
Modify the component creation to do the following (yes, we sort of get rid of all the cool Animate keywords):
class TurningPot extends React.Component { constructor(props) { super(props); this.state = {yRotation: 0}; this.lastUpdate = Date.now(); this.rotate ...Read now
Unlock full access