see Robotics Simulation - Six DoF Robot Simulation / Rotation issues
From the Collection of examples from discourse.threejs.org RobotSimulation