# How to Constrain a Grabbable VR Object Along a Path (UE5 + MetaXR + VR Template)

**URL:** <https://forums.unrealengine.com/t/how-to-constrain-a-grabbable-vr-object-along-a-path-ue5-metaxr-vr-template/2596728>\
**Category:** Blueprint\
**Tags:** grab, unreal-engine, Spline, Blueprint, question\
**Created:** [July 8, 2025, 8:39am UTC](https://forums.unrealengine.com/t/how-to-constrain-a-grabbable-vr-object-along-a-path-ue5-metaxr-vr-template/2596728 "2025-07-08T08:39:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TonyJim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TonyJim](https://forums.unrealengine.com/u/TonyJim)\
**Post date:** [July 8, 2025, 8:39am UTC](https://forums.unrealengine.com/t/how-to-constrain-a-grabbable-vr-object-along-a-path-ue5-metaxr-vr-template/2596728/1 "2025-07-08T08:39:27Z")

</div>

Hi everyone,

I’m working on a VR project in Unreal Engine 5 using the **VR Template** and **MetaXR plugin**. I’ve created a custom Blueprint for **VR tweezers** to extend grab range, which uses a gravity-gun style mechanic (Grab Component at Location with Rotation). The tweezers use **Enhanced Input Actions**.

Now, I want to create a mechanic where the player grabs an object (in my case a sphere) and slides it **along the path of a tube** , like threading a bead. The ball moves **outside the tube** , not inside, so using a physical tube as a collider doesn’t help — the ball needs to stay visually outside but follow a precise path.

I was trying to constrain the movement of the ball with a spline that follows the tube’s path, but I can’t overcome the grab action, so the spline constrain is over the grab action.

**🔧 Here’s my setup:**

- The **Object Blueprint** has:
  - A root SceneComponent.
  - A StaticMesh for the tube.
  - A **SplineComponent** attached to the tube, to define the path.
  - A StaticMesh for the ball itself.
  - A **Grab Component** attached to the ball.

- The ball uses **Simulate Physics** , collision, and gravity, but these are **disabled on Grabbed**. However, that On Grabbed event **never fires**.
- I’ve tried constraining the ball to the spline using Set Relative Transform and Set Actor Location, but it doesn’t work once the player grabs it.
- I suspect the On Grabbed event doesn’t trigger because the tweezers’ Grab Component is the one handling the grab.
- I also tried calling Try Grab on the ball’s Grab Component from the tweezers, but it didn’t work.

**My goals:**

1. **Constrain the grabbed ball along a fixed path** , ideally using the Spline, but I’m open to other solutions (e.g., physics workaround, custom logic, etc.).
2. Ensure the ball **moves only along the spline or predefined axis** , even while being held.

Any advice or ideas? I’ve hit a wall trying to make the grab constraint coexist with a path-following system.

Thanks in advance for your help!
