# Can't set position of an actor that once had physics enabled

**URL:** <https://forums.unrealengine.com/t/cant-set-position-of-an-actor-that-once-had-physics-enabled/326494>\
**Category:** World Creation\
**Tags:** setactorlocation, teleport, unreal-engine, Physics, question\
**Created:** [July 25, 2015, 2:48pm UTC](https://forums.unrealengine.com/t/cant-set-position-of-an-actor-that-once-had-physics-enabled/326494 "2015-07-25T14:48:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Wamboldt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brandon\_Wamboldt](https://forums.unrealengine.com/u/Brandon_Wamboldt)\
**Post date:** [July 25, 2015, 2:48pm UTC](https://forums.unrealengine.com/t/cant-set-position-of-an-actor-that-once-had-physics-enabled/326494/1 "2015-07-25T14:48:12Z")

</div>

**Engine Version:**

4.8.2

**Steps to reproduce:**

1. Create new project using Blueprint First Person Template
2. Create a new Blueprint based on the Actor class
3. Add a new cube component to the Blueprint
4. Enable Physics on the cube component
5. Set auto receive input from player 0 on the Blueprint
6. Add an event to the blueprint for the key “E” to change position (see example)
7. Place an instance of the blueprint on the map

At this point, if you play the game, pressing “E” does nothing. If you stop the game. disable physics on the cube component, and restart the game, pressing “E” changes the object’s vertical position as expected. This in and of itself is a bug in my opinion.

The bigger bug though, is that if you disable physics simulation in Blueprint, you STILL cannot set the actor’s position. Repeat the same sets as above, but add a node to “Set Physics Simulation” to false on the cube component.

What appears to be happening is that the actor is being moved, but the physics enabled component isn’t (so the local position is changing, but the world position isn’t). See screenshot:

[http://new.tinygrab.com/37897525d4e59a901cb419088ecdeb22e63b7c3495.png](http://new.tinygrab.com/37897525d4e59a901cb419088ecdeb22e63b7c3495.png)

**Conditions:**

In my effort to ensure I provide as much detail as possible, I’ve been looking into the issue more:

- SetActorLocation works fine if the root component is the component with physics enabled
- SetWorldLocation works fine IF called on the component with physics enabled but then the physics enabled component and root component get out of sync

**Blueprint Component Hierarchy:**

[http://new.tinygrab.com/37897525d4265786567d24450f16384b6d0027fed6.png](http://new.tinygrab.com/37897525d4265786567d24450f16384b6d0027fed6.png)

**Example Blueprint To Change Position:**

[http://new.tinygrab.com/37897525d40aa4b0e3e934c920fdcdf3c1ec71b792.png](http://new.tinygrab.com/37897525d40aa4b0e3e934c920fdcdf3c1ec71b792.png)

**Example Blueprint To Disable Physics Simulation:**

[http://new.tinygrab.com/37897525d4e68931737b4228c99f06775dfb70083f.png](http://new.tinygrab.com/37897525d4e68931737b4228c99f06775dfb70083f.png)

---

<div class="post-metadata">

**Author:** ![Brandon\_Wamboldt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brandon\_Wamboldt](https://forums.unrealengine.com/u/Brandon_Wamboldt)\
**Post date:** [July 25, 2015, 2:53pm UTC](https://forums.unrealengine.com/t/cant-set-position-of-an-actor-that-once-had-physics-enabled/326494/2 "2015-07-25T14:53:30Z")

</div>

Even a hacky work around would be appreciated though, I have found no way to get past 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:** [July 27, 2015, 1:07pm UTC](https://forums.unrealengine.com/t/cant-set-position-of-an-actor-that-once-had-physics-enabled/326494/3 "2015-07-27T13:07:22Z")

</div>

Hi Brandon,

The reason that this isn’t working is because the GetActorLocation node is setting the location of Self, which is the Default Scene Root. If you swap the Default Scene Root for something that you can see (like a Billboard or StaticMesh component) you will see that the it does move how you are telling it too.

To fix this, you can either set the Cube as the root which will work with your original setup.

Or make a direct reference to the Cube.

 ![51651-physicscube01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/e/b6e9fc552efc9ab7ba4424eb4154d9c23725cd8d.jpeg)

If you have any other questions just let me know.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8474fbfb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8474fbfb](https://forums.unrealengine.com/u/anonymous_user_8474fbfb)\
**Post date:** [June 10, 2016, 11:34am UTC](https://forums.unrealengine.com/t/cant-set-position-of-an-actor-that-once-had-physics-enabled/326494/4 "2016-06-10T11:34:12Z")

</div>

it didnt work for me even when i set simulate phusics to false

---

<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:** [June 14, 2016, 8:26pm UTC](https://forums.unrealengine.com/t/cant-set-position-of-an-actor-that-once-had-physics-enabled/326494/5 "2016-06-14T20:26:24Z")

</div>

HI BRS Office,

I just tested this in 4.12.2 and it is working on my end. Feel free to post a screenshot of your setup or a small test project and I will see if I can help.

TJ

---

<div class="post-metadata">

**Author:** ![error406](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@error406](https://forums.unrealengine.com/u/error406)\
**Post date:** [July 28, 2016, 7:36am UTC](https://forums.unrealengine.com/t/cant-set-position-of-an-actor-that-once-had-physics-enabled/326494/6 "2016-07-28T07:36:42Z")

</div>

Thanks, this solved a similar physics get location problem for me too
