# Blend weight of physics asset after constraint is broken? Possibly UE-40632 related

**URL:** <https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153>\
**Category:** Character & Animation\
**Tags:** physics-constraints, unreal-engine, Blueprint, question\
**Created:** [December 2, 2016, 8:40pm UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153 "2016-12-02T20:40:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![borbs727](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@borbs727](https://forums.unrealengine.com/u/borbs727)\
**Post date:** [December 2, 2016, 8:40pm UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153/1 "2016-12-02T20:40:06Z")

</div>

I have a destructible robot. It’s parts can break apart and react to hits using the physics asset. The issues arise when I’m blending the physics weight.

In the GIF you can see that I break the head off first, then he animates (bringing the head back), he lands, the head goes back to where it originally dropped, and his body freaks out until I kill him.

![117189-phys-bugs.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/7/5b72778577c333b698399fffda34c8f50fd83e89.gif)

**Here are the problems that I can identify:**

1. Blend weight returns broken rigid body constraints back to the skeletal mesh when blend weight is set to 0
2. When blend weight is set back to 1 (after landing the jump), the simulation freaks out and doesn’t stop freaking out until the character is dead and all of the objects are set to a new simulation.

**Questions:**

1. Is it possible to ignore bones during physics blending? That way they don’t pop back onto the character.
2. Is there a way to prevent the physics asset from simulating in the background when I turn the blending to 0? I’m hoping that will allow the character to return to the simulation after the landing.

Thanks for any help!

**EDIT:**

As Tomasz has pointed out below, it looks like my issue is related to UE-40632 [Unreal Engine Issues and Bug Tracker (UE-40632)](https://issues.unrealengine.com/issue/UE-40632)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d825753](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d825753](https://forums.unrealengine.com/u/anonymous_user_2d825753)\
**Post date:** [January 9, 2017, 10:50am UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153/2 "2017-01-09T10:50:49Z")

</div>

Have you been able to sort this out? I’m having the same problem. What is interesting this looks like a regression since the same code I had worked just fine on 4.12 and before.

---

<div class="post-metadata">

**Author:** ![borbs727](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@borbs727](https://forums.unrealengine.com/u/borbs727)\
**Post date:** [January 9, 2017, 3:02pm UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153/3 "2017-01-09T15:02:27Z")

</div>

Nope, I wasn’t able to fix it. I ended up scrapping the idea of dynamically breaking limbs off. Now the limbs just break off when the character dies. Wish there was a way to ignore a specific bone during blending. There is a node for ignore blending, but I don’t think it does what I need.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d825753](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d825753](https://forums.unrealengine.com/u/anonymous_user_2d825753)\
**Post date:** [January 23, 2017, 3:49pm UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153/4 "2017-01-23T15:49:42Z")

</div>

Here’s the issue link under which this issue is supposed to be fixed no sooner than 4.16 [Unreal Engine Issues and Bug Tracker (UE-40632)](https://issues.unrealengine.com/issue/UE-40632). I believe this is exactly the problem you were having.

---

<div class="post-metadata">

**Author:** ![borbs727](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@borbs727](https://forums.unrealengine.com/u/borbs727)\
**Post date:** [January 23, 2017, 4:05pm UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153/5 "2017-01-23T16:05:15Z")

</div>

Looks like it! I reposted your link to the issue in my post in hopes that it will link up to the issue page.

---

<div class="post-metadata">

**Author:** ![ivanesses](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ivanesses](https://forums.unrealengine.com/u/ivanesses)\
**Post date:** [August 29, 2017, 2:02pm UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153/6 "2017-08-29T14:02:38Z")

</div>

any updates on your issue?

---

<div class="post-metadata">

**Author:** ![borbs727](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@borbs727](https://forums.unrealengine.com/u/borbs727)\
**Post date:** [August 29, 2017, 2:07pm UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153/7 "2017-08-29T14:07:07Z")

</div>

Tomasz said it’s suppose to be fixed by now, not sure if it is. His link is broken so maybe it has been resolved?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d825753](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d825753](https://forums.unrealengine.com/u/anonymous_user_2d825753)\
**Post date:** [August 29, 2017, 2:57pm UTC](https://forums.unrealengine.com/t/blend-weight-of-physics-asset-after-constraint-is-broken-possibly-ue-40632-related/378153/8 "2017-08-29T14:57:33Z")

</div>

So actually I have tested it and this issue was not fixed either in 4.15 or 4.16. I have fixed it myself in the engine by changing the way caching of blended bones in phys anim works.

I have removed the following part from PhysAnim.cpp around lines 240-241

```
WorldBoneTMs[BoneIndex].TM = PhysTM;
WorldBoneTMs[BoneIndex].bUpToDate = true;

```

The caching still works this way, but at least bodies that need to be blended will be do so properly. Not sure if this doesn’t really cause some hard to find problems, but my testing didn’t show anything suspicious at all, so I stick to this fix.
