Answer the question
In order to leave comments, you need to log in
How to control animation in Three.js?
Hey! A globe is built on a project using three.js, on which there are dots of countries. When you click on a country point, the globe scrolls to the desired point. How to control this animation? Ideally, get an animation end event to execute related code.
Now it looks like this:
raycaster.setFromCamera(mouse, camera);
const intersects = raycaster.intersectObjects(scene.children);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question