# Grabbing objects from a distance with a Trace Line ?

**URL:** <https://forums.unrealengine.com/t/grabbing-objects-from-a-distance-with-a-trace-line/2156508>\
**Category:** XR Development\
**Tags:** unreal-engine, question\
**Created:** [November 28, 2024, 3:57pm UTC](https://forums.unrealengine.com/t/grabbing-objects-from-a-distance-with-a-trace-line/2156508 "2024-11-28T15:57:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sach\_pierre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sach\_pierre](https://forums.unrealengine.com/u/sach_pierre)\
**Post date:** [November 28, 2024, 3:57pm UTC](https://forums.unrealengine.com/t/grabbing-objects-from-a-distance-with-a-trace-line/2156508/1 "2024-11-28T15:57:40Z")

</div>

Hey everybody,

I am new to unreal engine and I am attempting to create a simple grabbing mecanism in VR, that allows the user to select an object with a trace line from a distance, and move the object around. Eventually making it possible to manipulate the scale, and rotation of the object.

Currently I have a trace line setup, that fires from both hands but I can’t make it interact with anything as my knowledge is very limited. I was wondering if anyone knows a way around this ? This is what I have currently :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/7/dd77e9f319b717e1d6034f0ae82a9803fe49a48f.jpeg)

I am using the VRPawn from the VRTemplate, with the same grabbing components and input mappings.

This is the blueprint for the line trace that I named “SC\_SelectionTrace” which I’ve made in a scene component :

 ![SelectionTrace_Blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/9/2692ab1a4894b18c01733c1f3a4848978ea59f80.png)

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [November 28, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/grabbing-objects-from-a-distance-with-a-trace-line/2156508/2 "2024-11-28T16:43:37Z")

</div>

Here’s a tutorial 😊

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/0/8f09c43430a94fedd72ee72f4346667993430e0c.jpeg "How to Grab Objects and Move Them Around in Unreal Engine 5") ](https://www.youtube.com/watch?v=k6oKBVRaLLo)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 28, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/grabbing-objects-from-a-distance-with-a-trace-line/2156508/3 "2024-12-28T16:43:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
