Hi
I am trying to make a 3d object draggable.
This example serves as a basis: https://threejs.org/examples/#misc_controls_drag (The dragging of the cuboids works perfectly).
I import the 3d model with the example code from https://threejs.org/docs/#examples/en/loaders/GLTFLoader (the import works fine with gltf-, glb- or fbx-files).
But the imported 3d objects cannot be dragged, even though I have added them to the group of draggable objects. As a test i also exported a simple cube from blender, but it doesn’t work with that either.
What am I doing wrong?
Can you show your code?
Pay attention to raycast detection with 3d model.