April 2020
Intermediate to advanced
716 pages
18h 55m
English
The rotation behavior for each 3D object is implemented in the event handlers added to the Entity component, which is rendering the 3D object. Specifically, in the rotate(index) and stopRotate() handler methods that are called when the onEnter and onExit events occur, we will implement rotation animation behavior using requestAnimationFrame for smooth animations in the browser.
Using the rotate method, we will update the rotateY transform value of ...