# Physics Handle is broken

**URL:** <https://forums.unrealengine.com/t/physics-handle-is-broken/342591>\
**Category:** World Creation\
**Tags:** physics-handle, unreal-engine, Physics, bug-report, question\
**Created:** [December 28, 2015, 7:29pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591 "2015-12-28T19:29:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davision](https://forums.unrealengine.com/u/Davision)\
**Post date:** [December 28, 2015, 7:29pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/1 "2015-12-28T19:29:33Z")

</div>

The component Physics Handle is hardly use able in its current state:

Set Target Rotation doesn’t seem to do anything, the grabbed component will always spin around no matter what you do. When you try to force it to rotate with the player the result will be that it will fly away while rotating the view.

Set Target Location works badly, when you rotate your view around quickly your grabbed component will drag behind and that even happens when you have linear stiffness and interpolation set to huge values. The worst part is that it can get stuck somewhere while it gets dragged behind.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [December 30, 2015, 5:37pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/2 "2015-12-30T17:37:42Z")

</div>

Hey Davision,

I created a tutorial on how to setup physics handles [here.](https://wiki.unrealengine.com/Pick_Up_Physics_Object_Tutorial) There is also [a forum thread](https://forums.unrealengine.com/showthread.php?51915-TUTORIAL-Physics-Handle-Pick-Up-Physics-Objects/page2) discussing them.

I haven’t tried this setup in 4.8 myself but I have had other users report that it works fine in 4.8 and 4.9. Could you look through it to see if that setup works for you?

If it doesn’t, could you include some screenshots of your setup or a small test project?

---

<div class="post-metadata">

**Author:** ![Davision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davision](https://forums.unrealengine.com/u/Davision)\
**Post date:** [January 10, 2016, 2:53pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/3 "2016-01-10T14:53:00Z")

</div>

Yea, I used that tutorial, In your video you can see the problems as well. It spins around and lags behind. It appears physics handle only attaches position and not rotation thats why it look like it spins when the player rotates differently. For what I wanted to do there I fell back to a Physics constraint instead and to keep it from being pushed through collisions I made it break off when there is too much stress through collision. Far from optimal gameplay wise but at least it works and it is always in the hands of the player.

But I run already in another case where I need this to work. I basically have a physics ball and on that I want to attach a ragdoll, without the ragdoll changing the mass and velocity of the physics ball. Physics constraint will change the mass and velocity and physics handle will not attach it rotation wise and the position lags behind. It seems there is no actual way to do this?

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [January 26, 2016, 3:39pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/4 "2016-01-26T15:39:01Z")

</div>

Hey Davision,

Sorry for the delay.

Just so I can get a better understanding. Could you post a short video or gif of an example of exactly what you are trying to accomplish? A clip from an existing game or anything like that would be fine.

---

<div class="post-metadata">

**Author:** ![Davision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davision](https://forums.unrealengine.com/u/Davision)\
**Post date:** [January 27, 2016, 1:18pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/5 "2016-01-27T13:18:22Z")

</div>

For the first case I had which I have given up on to solve it with a physics handle I can give you several videos. This is pretty much the first version of grabbing something by using a Physics constraint (Problem: it has too detach when it has too much stress to prevent it from getting pushed through collisions)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/d/a6d61b4b64afa40ee6a1ff45b87d845caac10dcf.jpeg "FORKLIFT MAN WANTS YOUR SOUL - Random Games") ](https://www.youtube.com/watch?v=BvwvbAge0aQ)

As you can see the box is 100% on the hand position and 100% on the hand rotation at all time. Now with a physics handle it lags behind, so the faster you drag it around the more further away it is from the hands (the target location). But the even bigger problem is that it doesn’t get the rotation of the hands at all. (the target rotation)  
Setting target rotation doesn’t work and setting a high interpolation location speed doesn’t work either, it appears to be clamped at 100.  
The reason I need a Physics handle now is that you can not move a physic handle grabbed object through a collision and that you can grab any bone of a skeleton. (Using a physics constraint on a bone doesn’t work, only the root works)

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [January 27, 2016, 2:41pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/6 "2016-01-27T14:41:55Z")

</div>

To keep the box from rotating you can set the Constrain Rotation on the Grab Component node to true. However Physics Handles will always have some lag because the object is still simulating physics and has mass.

To accomplish what you want, I suggest maybe going about it another way.

You could try this: Hit trace the Physics Object \> Set it to the location in front of the player where you want \> Turn Simulate Physics off \> Attach it to a socket to carry it around

Then when you drop it \> Detach the object \> Simulate Physics on \> Wake Rigid Bodies

Using that method you should get something that is very similar to the video you posted.

---

<div class="post-metadata">

**Author:** ![Davision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davision](https://forums.unrealengine.com/u/Davision)\
**Post date:** [January 29, 2016, 6:20pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/7 "2016-01-29T18:20:23Z")

</div>

But with that solution the object would move freely through every collision. Weld attaching a collision to a player collision doesn’t work either. I’m pretty sure constraining the rotation would make the rotation be locked in world space. But it would still need to get rotated to how the hands are rotated which would then not work at all anymore.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [February 2, 2016, 8:57pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/8 "2016-02-02T20:57:39Z")

</div>

Using the method I mentioned you would need to adjust the characters movement and rotation based on if the box is colliding with a wall or any other collision object. Or detach and simulate/wake the object so it pops loose on collision, like in the video above.

If you want to keep the physics handle approach, you could also try playing around with Substepping. It’s an experimental feature but it basically allows physics to look smoother and be updated faster. It can be performance heavy though.

---

<div class="post-metadata">

**Author:** ![Shiroe233](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shiroe233/32/464932_2.png) [@Shiroe233](https://forums.unrealengine.com/u/Shiroe233)\
**Post date:** [April 30, 2016, 8:51am UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/9 "2016-04-30T08:51:55Z")

</div>

I also want to set the physics handle rotation with the player ，but failed. Have you found solution now？ if you have implement the function, can you tell me the method.Thank you .

---

<div class="post-metadata">

**Author:** ![Davision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davision](https://forums.unrealengine.com/u/Davision)\
**Post date:** [April 30, 2016, 2:11pm UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/10 "2016-04-30T14:11:21Z")

</div>

No, I just went with Physics Constraint instead again and did that as best as I could. It then detaches when there is too much stress on it to prevent it from going through collisions.

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [December 4, 2016, 7:49am UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/11 "2016-12-04T07:49:42Z")

</div>

As the OP was pointing out, if you disable physics to attach the object to a component or socket, the object will not collide with other actors in the world. What we need is the ability to attach the physics handle to a scene component or a socket so that we can more easily manipulate it (by rotating the scene component for example). Otherwise you can pick up objects, but you can’t rotate them etc.  
Is there some reason why the Physics Handle is added in underneath the character movement as opposed to the component tree like everything else?

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [December 4, 2016, 7:54am UTC](https://forums.unrealengine.com/t/physics-handle-is-broken/342591/12 "2016-12-04T07:54:08Z")

</div>

You mind showing an example of how you got this working using Physics Constraint? What are you constraining the object to?
