# How to grab objects in VR while simulating physics and collision for said object?

**URL:** <https://forums.unrealengine.com/t/how-to-grab-objects-in-vr-while-simulating-physics-and-collision-for-said-object/397180>\
**Category:** XR Development\
**Tags:** object-picker, unreal-engine, UE4, CPP, Blueprint, question\
**Created:** [July 9, 2017, 9:00am UTC](https://forums.unrealengine.com/t/how-to-grab-objects-in-vr-while-simulating-physics-and-collision-for-said-object/397180 "2017-07-09T09:00:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ecbdc90a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ecbdc90a](https://forums.unrealengine.com/u/anonymous_user_ecbdc90a)\
**Post date:** [July 9, 2017, 9:00am UTC](https://forums.unrealengine.com/t/how-to-grab-objects-in-vr-while-simulating-physics-and-collision-for-said-object/397180/1 "2017-07-09T09:00:08Z")

</div>

Hello, I started a project in VR from the VR-template that follows with unreal. I noticed that with attachtocomponent you need to disable physics to be able to grab. This causes the undesirable effect that the item can go through all other objects and can’t cause trigger event.

I’ve tried physics handler, but it’s very loose and acts strange like the object just spinning around and doesn’t really follow my arm movements well.  
I’ve also tried to just set the transform, but then the object falls towards the floor, which I tried to fix with disabling gravity while you hold the object, which helps, but like every second the object lags.

I’ve searched around, but haven’t seen anyone posting a solution that is not a template which does not work anymore for some reason. Is there some way to simulate physics and collision of an object while it’s grabbed by your controller? Appreciate any help I can get!

---

<div class="post-metadata">

**Author:** ![Ninjin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ninjin](https://forums.unrealengine.com/u/Ninjin)\
**Post date:** [July 13, 2017, 12:42pm UTC](https://forums.unrealengine.com/t/how-to-grab-objects-in-vr-while-simulating-physics-and-collision-for-said-object/397180/2 "2017-07-13T12:42:50Z")

</div>

Sorry I couldn’t help. I made a few tests now in my VR project and it all comes down to setting your [Collision Responses](https://docs.unrealengine.com/latest/INT/Engine/Physics/Collision/Reference/index.html) properly.

I got an example **Pickup that can collide with the World if it is detached, it also collides with other Physic Objects when attached + trigger events in trigger volumes** etc.

However, if your Pickup is attached on your MotionController, you will go through static objects. This is the default design choice in Unreal, because the player is free in reality. There are no objects around him. So, if there is a table in VR in front of him, you shouldn’t block his hands or the object nor shouldn’t you offset the hand. Your player will just lose control.

Back to my example:  
To make this work you can fiddle around with Collision Responses, but in my case I added a new Object Type called VRGrab in the Project settings under Collision. The Pickup Static Mesh has Collision Enabled (Query and Physics).  
It ignores most of the other Objects, but it overlaps with WorldDynamic (that’s for the trigger events). I also block with other VRGrab objects (block other pickups, so you can grab a pickup and slap other pickups)

Trigger volumes are usually set up like so: Collision Enabled (Query), Object Type (WorldDynamic) and they overlap with every other Object Type. So, if you added the new Object Type VRGrab, make sure your Trigger Volume has checked Overlap with VRGrab.

That’s it, these settings will lead to the behavior I marked. Would be great to hear if you can extract this information for your case and report back if you still got any issues left! \<3

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ecbdc90a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ecbdc90a](https://forums.unrealengine.com/u/anonymous_user_ecbdc90a)\
**Post date:** [July 14, 2017, 2:56pm UTC](https://forums.unrealengine.com/t/how-to-grab-objects-in-vr-while-simulating-physics-and-collision-for-said-object/397180/3 "2017-07-14T14:56:28Z")

</div>

Sorry I’m probably really bad at this (New to the engine), but I still don’t get it to work. I got these settings now:

Hand collision

 ![192101-handcollision.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/4/3445f852a90d892f85e77d2cb70e1846e2996ceb.png)

and

Object collision

![192102-itemcollision.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/7/4372fdfcba650d82050a030cd8ff98fc07256563.png)

Can you help me further? I appreciate your help!

---

<div class="post-metadata">

**Author:** ![PixelsDesign](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PixelsDesign](https://forums.unrealengine.com/u/PixelsDesign)\
**Post date:** [October 28, 2017, 9:04pm UTC](https://forums.unrealengine.com/t/how-to-grab-objects-in-vr-while-simulating-physics-and-collision-for-said-object/397180/4 "2017-10-28T21:04:52Z")

</div>

I have the same problem…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_44df76161](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_44df76161](https://forums.unrealengine.com/u/anonymous_user_44df76161)\
**Post date:** [January 22, 2019, 8:34pm UTC](https://forums.unrealengine.com/t/how-to-grab-objects-in-vr-while-simulating-physics-and-collision-for-said-object/397180/5 "2019-01-22T20:34:33Z")

</div>

I know this is a bit of an old post but hope that it helps with someone else having the same issue.

It seems that using physics constraint instead of a physics handler with a linear breakage of about 100000 or so looks feasible for it to look like you are holding the object as well as the object not able to go through other objects

---

<div class="post-metadata">

**Author:** ![Asta1001](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/asta1001/32/960578_2.png) [@Asta1001](https://forums.unrealengine.com/u/Asta1001)\
**Post date:** [July 31, 2024, 12:08pm UTC](https://forums.unrealengine.com/t/how-to-grab-objects-in-vr-while-simulating-physics-and-collision-for-said-object/397180/6 "2024-07-31T12:08:12Z")

</div>

Hi, can you explain in details?

Currently, I am able to grab objects and release them .The only thing which is remained that is when i am grabbing any object freely the hands/fingers should not pass or merge in with mesh.

It should be around the edge of the mesh, seen people achieving this using snap but i’m using line trace and having a custom grab which looks much better than snapping.

So can you help in this situation ?

Thanks in Advance!
