As usual some of the best Three.js content. I've been messing around with Raycasters to create a drag functionality. Similar to DragControls from drei. It needs quite a bit of math to ensure the objects transform based on where the camera's pointing and also the pointer data + raycast data. Would be a great tutorial if possible! :D
Great tutorial. Wondering how to select a larger area with the raycaster 🤔 e.g. a square area around the ray itself, or you can think of it as a fuzzy distance threshold for an object to qualify as intersected
Check out Box3, which is an axis-aligned bounding box (AABB). This allows you to intersect with simple geometry. Your objects would need to be enclosed in some type of simplified bounding geometry (sphere, box, cylinder, etc.) that you can use for collisions, since doing collision detection with arbitrary geometry is very computationally intense.
Great tutorial! Didn't vote on the poll, but could you please do one about physics? I feel kinda lost when about using physics libraries and how to set those up.
New sub here . Thank you for your video . Btw, do you have a course website to learn all of this? If you do, I am very interested in Three.js to create a warehouse system. With the need for drag and drop objects like racks in specific positions, each rack having an ID, and the ability to stack racks.
As usual some of the best Three.js content. I've been messing around with Raycasters to create a drag functionality. Similar to DragControls from drei. It needs quite a bit of math to ensure the objects transform based on where the camera's pointing and also the pointer data + raycast data. Would be a great tutorial if possible! :D
Thank you very much for the tutorial and the git example! Helped me a lot!
Great and straightforward tutorial thanks again. Now the step should be how to move the selected object around the scene.
You are the 2nd person to comment that in 10 minutes so I will definitely consider it!
Great tutorial ❤❤ but my mousedown,mouseover, and other events not working only mouseclick event working any solution
Great tutorial. Wondering how to select a larger area with the raycaster 🤔 e.g. a square area around the ray itself, or you can think of it as a fuzzy distance threshold for an object to qualify as intersected
Check out Box3, which is an axis-aligned bounding box (AABB). This allows you to intersect with simple geometry. Your objects would need to be enclosed in some type of simplified bounding geometry (sphere, box, cylinder, etc.) that you can use for collisions, since doing collision detection with arbitrary geometry is very computationally intense.
Thank you so much for this
Great tutorial! Didn't vote on the poll, but could you please do one about physics? I feel kinda lost when about using physics libraries and how to set those up.
You’re in luck! Working on a physics video right now.
Quality content
uffff 🔥 thanks man
Amazing thanks so much
New sub here . Thank you for your video . Btw, do you have a course website to learn all of this? If you do, I am very interested in Three.js to create a warehouse system. With the need for drag and drop objects like racks in specific positions, each rack having an ID, and the ability to stack racks.
Sorry I don’t have any courses available at this time. I do have plans to release a course but that will be later this year.
thank you