# Problem with SetWorldLocation and physics enabled skeletal mesh

**URL:** <https://forums.unrealengine.com/t/problem-with-setworldlocation-and-physics-enabled-skeletal-mesh/349345>\
**Category:** World Creation\
**Tags:** unreal-engine, Physics, skeletalmesh, question\
**Created:** [March 2, 2016, 10:36pm UTC](https://forums.unrealengine.com/t/problem-with-setworldlocation-and-physics-enabled-skeletal-mesh/349345 "2016-03-02T22:36:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6fcbe82e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6fcbe82e](https://forums.unrealengine.com/u/anonymous_user_6fcbe82e)\
**Post date:** [March 2, 2016, 10:36pm UTC](https://forums.unrealengine.com/t/problem-with-setworldlocation-and-physics-enabled-skeletal-mesh/349345/1 "2016-03-02T22:36:16Z")

</div>

I have noticed the following problem:

if physics is enabled, calling SetWorldLocation (either in C++ or blueprint) on a skeletal-mesh does not seem to do anything. This is strange, because with StaticMesh, this works fine.

Then I thought, maybe as a workaround do:

```
setSimulatePhysiscs(false);
setWorldLocation(newPosition)
setSimulatePhysiscs(true);

```

but this gives the same result, the skeletalmesh does not move…

if you do

```
setSimulatePhysiscs(false);
setWorldLocation(newPosition);

```

on a skeletal mesh that had physics enabled, it DOES move to it’s new position… weird right? (but that leaves you with a skeletal mesh with simulate physics off, which is not what I want)

Somehow it seems that when you use SetWorldLocation on a skeletal mesh, it forgets to update the new location to the physics engine, and the physics engine moves it back to it’s old location.

I assume this is a bug? Could this be fixed please? And does anyone know a workaround?

Thanks!

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [March 3, 2016, 4:56pm UTC](https://forums.unrealengine.com/t/problem-with-setworldlocation-and-physics-enabled-skeletal-mesh/349345/2 "2016-03-03T16:56:40Z")

</div>

Hello,

I have reproduced your issue, and have entered a bug report (UE-27783). Thank you for your report. I will provide updates on this issue as they become available.

Have a great day

---

<div class="post-metadata">

**Author:** ![Freebios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freebios](https://forums.unrealengine.com/u/Freebios)\
**Post date:** [April 23, 2016, 11:17pm UTC](https://forums.unrealengine.com/t/problem-with-setworldlocation-and-physics-enabled-skeletal-mesh/349345/3 "2016-04-23T23:17:37Z")

</div>

Bug still there in 4.11.2 with an AActor and physics enabled! Would be great that you fix this bug :S

---

<div class="post-metadata">

**Author:** ![Ardenstone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ardenstone/32/743838_2.png) [@Ardenstone](https://forums.unrealengine.com/u/Ardenstone)\
**Post date:** [June 22, 2019, 9:09pm UTC](https://forums.unrealengine.com/t/problem-with-setworldlocation-and-physics-enabled-skeletal-mesh/349345/4 "2019-06-22T21:09:07Z")

</div>

I’m currently experiencing almost the same exact issue with UStaticMeshComponent.

```
ItemMeshComponent->SetWorldLocation(NewLocation); // here is where I set the location	
SetActorHiddenInGame(false);
SetActorEnableCollision(true);
DropItem();

void AItemBase::DropItem()
{	
	bIsCurrentlyHeld = false;
	ItemMeshComponent->SetSimulatePhysics(true); // this line wont let the component move	
	OnItemDropped();
}

```

However, if I move the physics change inside the blueprint on my OnItemDropped() blueprint event with a 0.1 delay added it works. It’s like it needs a little bit of extra time in order to actually set the location of the staticmeshcomponent and when you set the physics in the code it just happens too fast.
