How to animate both Box and Sphere? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
30th Nov 2023, 7:28 PM
Emma Strienko
Emma Strienko - avatar
3 Answers
+ 2
I did it in another way. I just created new function animateObjects, and I called these two animate functions within it, and I called the render.setAnimationLoop(animateObjects) https://sololearn.com/compiler-playground/WHb0u3cfuJ8S/?ref=app
1st Dec 2023, 8:57 AM
Emma Strienko
Emma Strienko - avatar
+ 1
I think it's to do with the "renderer". Do you know if you can render 2 objects at once? Do you have a link to the documentation?
30th Nov 2023, 11:19 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Great solution! Well done
1st Dec 2023, 9:19 AM
Ausgrindtube
Ausgrindtube - avatar