How to Implement Manual Mesh Movement with Collision Detection

I’m working on a project where I have two meshes in Grasshopper, and I need to move one of them manually while ensuring it stops when it touches the other mesh. I’ve been exploring various components and plugins but haven’t found a clear solution yet. Can someone provide guidance or suggest a workflow to achieve this effectively? I’m particularly interested in implementing collision detection to halt the movement upon contact with the other mesh.

Thank you in advance for your help!

I believe i experience this before with Kangaroo , will check and upload the file

1 Like

Can you elaborate on what you mean by “move one of them manually”?

Is this movement along a fixed axis? Can the object being dragged rotate?

Here’s an example where the large mesh is fixed, and the smaller mesh is draggable in the rhino viewport, with its rotations fixed:
meshcollide.gh (12.7 KB)

2 Likes

this is exactly what I’m looking for here , thank you