Build generic click handler for threejs objects through PickHelper
// Call raycast from camera to normalizedPosition and store the intersected object to pickHelper.hoveredObjectpickHelper.pick(normalizedPosition,raycastableObjs,camera);// Calls pickHelper.hoveredObject.userData.classObject.onClick() // Returns true if onClick was called successfully.pickHelper.execute();
Add scroll handler for PickHelper
// Call raycast from camera to normalizedPosition and store the intersected object to pickHelper.hoveredObjectpickHelper.pick(normalizedPosition,raycastableObjs,camera);// Calls pickHelper.hoveredObject.userData.classObject.onScroll(deltaY) // Returns true if onScroll was called successfully.pickHelper.scroll(deltaY);