# Change Phys Material in runtime

**URL:** <https://forums.unrealengine.com/t/change-phys-material-in-runtime/1736201>\
**Category:** C++\
**Tags:** Physics-Bodies, physics-asset, unreal-engine, CPP\
**Created:** [March 7, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/change-phys-material-in-runtime/1736201 "2024-03-07T16:43:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Djanoris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Djanoris](https://forums.unrealengine.com/u/Djanoris)\
**Post date:** [March 7, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/change-phys-material-in-runtime/1736201/1 "2024-03-07T16:43:09Z")

</div>

Hi, I am trying to change my tagged Phys Material override in runtime (example when I equip an armor)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/b/1bbf9a8c4a446b14cc0a74165a72cbea1825d964.png)

like this

```auto
FBodyInstance* BodyInstance = SkeletalMesh->GetBodyInstance(SocketName);

if (BodyInstance)
{
	BodyInstance->SetPhysMaterialOverride(PhysicalMaterial);
}

```

the problem is, it is changing not for selected skeletal mesh, but for all SKMs in game. When I open the Physics Asset in editor, I can see that for every bone is applied this material. I would like to change this only in game for one character, but not the defaults properties of this Physics Asset.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/9/7093913e55467767d36ee3825f580f11d7b7fc6b.png)

So I thought if I have body instance, I can change the phys mat for one character, but not the property in editor.
