# Drag boxGeometry using div R3F

**URL:** <https://discourse.threejs.org/t/drag-boxgeometry-using-div-r3f/67072>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [June 20, 2024, 10:54am UTC](https://discourse.threejs.org/t/drag-boxgeometry-using-div-r3f/67072 "2024-06-20T10:54:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [June 20, 2024, 11:24pm UTC](https://discourse.threejs.org/t/drag-boxgeometry-using-div-r3f/67072/3 "2024-06-20T23:24:57Z")

</div>

Here’s someone with a similar problem:

> [@Dragging along plane using raycaster](https://discourse.threejs.org/t/dragging-along-plane-using-raycaster/67070):
>
> Hi, I have some code that renders an array of meshes inside a group using stored matrices. All the meshes share the same rotation and only their position changes. I would like to be able to drag the groups of meshes around by altering the x and y transform of their matrices. My current approach is to add a large plane which shares the same matrix as the first item in the array of meshes and raycast against it to calculate how far I’ve dragged. This is what that looks like when the plane is ma…

---

_[View the full topic](https://discourse.threejs.org/t/drag-boxgeometry-using-div-r3f/67072)._
