Relative Content

Tag Archive for javascriptthree.js3dreact-three-fiber

How to add a secondary animation on click while maintaining a default animation

I have two animations: robot_idle.fbx and robot_shoot.fbx. I’m displaying the robot_idle animation by default when the page loads. However, I need to display the robot_shoot animation whenever the user clicks on the page, and then return to the idle animation. Could I please have some assistance with this? I’m relatively new to Three.js.