# How to get the vehicle's world locatioin?

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-vehicles-world-locatioin/1874438>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 26, 2024, 9:49pm UTC](https://forums.unrealengine.com/t/how-to-get-the-vehicles-world-locatioin/1874438 "2024-05-26T21:49:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HawaiianGamer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hawaiiangamer/32/950473_2.png) [@HawaiianGamer](https://forums.unrealengine.com/u/HawaiianGamer)\
**Post date:** [May 26, 2024, 9:49pm UTC](https://forums.unrealengine.com/t/how-to-get-the-vehicles-world-locatioin/1874438/1 "2024-05-26T21:49:59Z")

</div>

When I drive the tank around the map, I see that tank is moving quite well. But whenever I get a world location of the Actor or the Mesh, which I can see is moving around, I get the same location on the map where it started from. But I get the correct world location for the the Seat, an Actor Component that is literally attached to the Mesh (the character is attached to the Seat).

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/3/2432dd418937bac497fc51babc204dc600e4373c.png)

The Mesh is the root component. You can see in the screen shot below that the Mesh world location never changes as I drive around, but the Seat’s world location does. The print is done in Tick and I show which nodes I am using to pull the data from the Mesh and the Seat.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/5/905567c68cc4f2e3ea601f979c80cede6280af54.jpeg)

I am really at a loss at this moment to know how to discover where in the world the tank is located on the map.

What am I doing wrong???

BTW, I know I can just use the location of the Seat and all, but I am still at a loss to understand why the Mesh’s world location is never changing. If I didn’t have Seats, how would I discover the Mesh’s location as it moved?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 27, 2024, 5:50am UTC](https://forums.unrealengine.com/t/how-to-get-the-vehicles-world-locatioin/1874438/2 "2024-05-27T05:50:48Z")

</div>

Can you just try plugging the mesh location directly into the print node ( without formatting )?

---

<div class="post-metadata">

**Author:** ![HawaiianGamer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hawaiiangamer/32/950473_2.png) [@HawaiianGamer](https://forums.unrealengine.com/u/HawaiianGamer)\
**Post date:** [May 27, 2024, 2:35pm UTC](https://forums.unrealengine.com/t/how-to-get-the-vehicles-world-locatioin/1874438/3 "2024-05-27T14:35:13Z")

</div>

That was what I did initially, I expanded the print to include part of the skeleton’s location side by side to show that they don’t match.

I am now thinking that the Chaos Vehicle Movement Component literally moves the mesh’s skeletal root bone and not the Mesh Component nor Actor. I am thinking it may be using root motion animation exclusively. If that is the case, I wish that Epic would have noted it in the documentation somewhere. But if that is the case, I am a bit confused why they would do that, since they would also need to move the colliders with the skeleton.

I am going to dive deeper into this to confirm if this might be the case.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 27, 2024, 3:34pm UTC](https://forums.unrealengine.com/t/how-to-get-the-vehicles-world-locatioin/1874438/4 "2024-05-27T15:34:07Z")

</div>

It sounds like you’re right 🤔

---

<div class="post-metadata">

**Author:** ![HawaiianGamer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hawaiiangamer/32/950473_2.png) [@HawaiianGamer](https://forums.unrealengine.com/u/HawaiianGamer)\
**Post date:** [June 3, 2024, 4:39pm UTC](https://forums.unrealengine.com/t/how-to-get-the-vehicles-world-locatioin/1874438/5 "2024-06-03T16:39:13Z")

</div>

You might find this interesting…

I have the tank spawn on the side of a hill so that it rolls backwards by physics naturally. This is what I expect. But what I didn’t expect is that the camera’s spring arm doesn’t move with the vehicle unless I pin it to the Root bone.

I am sure they had good reason for doing what they did for high performance, but it has a truly defying intuitive design.

EDIT: I got the CVMC to replicate all the movement of the tank I needed. The last piece was to turn the vehicle on its root, which was done with the Set Yaw Input. To get this to work, I needed to setup the Arcade Torque settings.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/3/de364082fc673f28dee0f0901a90d44ba0e09e2f.png)
