# Unreal 5 VR: Cannot Teleport Actor After Grab

**URL:** <https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665>\
**Category:** Programming & Scripting\
**Tags:** teleport, unreal-engine, question, Blueprint\
**Created:** [May 3, 2024, 7:00pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665 "2024-05-03T19:00:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franjolos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Franjolos](https://forums.unrealengine.com/u/Franjolos)\
**Post date:** [May 3, 2024, 7:00pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/1 "2024-05-03T19:00:46Z")

</div>

Hello!

I have a simple blueprint that teleports an actor to the player when the player hits the A button.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/d/44de53af9229faf9d7e3dfea0095f8e4862f19a3.png)

The actor in question (ShotCam) has a GrabComponent to also enable the user to grab the object.

The script works perfectly until the player grabs the actor.  
It no longer executes the teleport if the player has grabbed and moved the actor at any point.

Can someone help me out as to why this is happening?

Thank you!

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [May 3, 2024, 8:21pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/2 "2024-05-03T20:21:24Z")

</div>

What happens if you add another instance of the ShotCam actor to the level?

---

<div class="post-metadata">

**Author:** ![Franjolos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Franjolos](https://forums.unrealengine.com/u/Franjolos)\
**Post date:** [May 3, 2024, 8:35pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/3 "2024-05-03T20:35:57Z")

</div>

Nothing different from the initial behaviour. It just teleports the first instance of the object around (until I grab it), and ignores the second instance entirely.

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [May 4, 2024, 8:15am UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/4 "2024-05-04T08:15:59Z")

</div>

Could you check the lenght of the ‘out actors’ array after the grab? Is the lenght still 1 after you grabbed the actor ?

---

<div class="post-metadata">

**Author:** ![Franjolos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Franjolos](https://forums.unrealengine.com/u/Franjolos)\
**Post date:** [May 6, 2024, 3:54pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/5 "2024-05-06T15:54:46Z")

</div>

Yes, it is still 1 before and after the grab. The return value from the ‘Teleport’ is also ‘True’ before and after the grab.

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [May 7, 2024, 6:38am UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/6 "2024-05-07T06:38:46Z")

</div>

Could you check this [post](https://forums.unrealengine.com/t/how-to-teleport-a-movable-actor-with-physic-in-blueprint/301921) and make sure this is not related to physics simulation?

I created a dummy VR project with a ‘ShotCam’ actor that contain only a white sphere as a visual representation, and there your teleport BP code is working fine - as long as the ShotCam actor physics simulation is not enabled.

---

<div class="post-metadata">

**Author:** ![Franjolos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Franjolos](https://forums.unrealengine.com/u/Franjolos)\
**Post date:** [May 7, 2024, 3:39pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/7 "2024-05-07T15:39:21Z")

</div>

Thank you for this reference post!

I’ve worked around this issue by using the ‘Set World Location and Rotation’ function instead of ‘Teleport’ and targeting the parent Static Mesh object within the actor instead of the actor itself. Not entirely sure why this works and teleporting the actor doesn’t after a grab, but oh well! It works!

Thanks for your help with this.

---

<div class="post-metadata">

**Author:** ![Franjolos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Franjolos](https://forums.unrealengine.com/u/Franjolos)\
**Post date:** [May 7, 2024, 9:32pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/8 "2024-05-07T21:32:57Z")

</div>

But actually, I’m leaving this post unresolved for a few reasons:

-Changing from teleport actor to set world location doesn’t behave the same, for some reason. Set World Location teleports from the object’s center point, and teleport teleports the front of the object to the player pawn’s camera (which for my purposes, is the intended behaviour, as I don’t want to see the object directly infront of the camera).

-We still don’t know why Grabbing permanently disables the object from teleporting, and I’d love to know why to get the original functionality to work the same

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [May 8, 2024, 6:56am UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/9 "2024-05-08T06:56:22Z")

</div>

The function ‘SetPrimitiveCompPhysics’ in the grab component is called every time you release a grabbed component.

You could check in the ‘TryRelease’ function if your grabbed item is the ShotCam actor and then call the ‘SetPrimitiveCompPhysics’ with ‘Simulate’ boolean set to false.

---

<div class="post-metadata">

**Author:** ![Franjolos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Franjolos](https://forums.unrealengine.com/u/Franjolos)\
**Post date:** [May 9, 2024, 2:18pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/10 "2024-05-09T14:18:35Z")

</div>

I’ve made the following addition to the TryRelease function, but unfortunately the behaviour has stayed the same. Unsure if I just handled this incorrectly or it truly has no effect on the problem.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/d/7ed02e1c9b3a4be00112413b0579dc5dc3640bd9.png)

Edit: Even if I disable simulate altogether without any condition, it still doesn’t teleport after having been grabbed.

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [May 9, 2024, 7:30pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/11 "2024-05-09T19:30:14Z")

</div>

In that case I would check if physics sim is disabled before the grabbing and if it’s enabled after. The behavior of the ShotCam actor is changing once it has been grabbed, so there must be something changed on the actor by the grab component.

---

<div class="post-metadata">

**Author:** ![PaYo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PaYo](https://forums.unrealengine.com/u/PaYo)\
**Post date:** [October 25, 2024, 9:29pm UTC](https://forums.unrealengine.com/t/unreal-5-vr-cannot-teleport-actor-after-grab/1838665/12 "2024-10-25T21:29:50Z")

</div>

is this a problem still cos i have similar problem and nowhere to find an answer

when i grab an actor i lose ability to change it’s location

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/7/a876a92eb07c1a80017f5b497b03f31d4003072e.png)  
its vr with widget umg and grab component inside cube i use vr pointer on button to check if it’s hovered
