# Accessing Physx vehicle data

**URL:** <https://forums.unrealengine.com/t/accessing-physx-vehicle-data/311719>\
**Category:** World Creation\
**Tags:** unreal-engine, Physics, Vehicles, CPP, question\
**Created:** [March 19, 2015, 4:35pm UTC](https://forums.unrealengine.com/t/accessing-physx-vehicle-data/311719 "2015-03-19T16:35:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c4ec7776](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c4ec7776](https://forums.unrealengine.com/u/anonymous_user_c4ec7776)\
**Post date:** [March 19, 2015, 4:35pm UTC](https://forums.unrealengine.com/t/accessing-physx-vehicle-data/311719/1 "2015-03-19T16:35:13Z")

</div>

UE4 exposure of inner vehicle data is lacking, to say the least (no lat/lon slip, tire contact normal, suspension jounce etc.). I absolutely need to access the PxVehicle queried data directly and it seems that this is impossible to do. Unreal uses a custom class (PhysXVehicleManager) to store queried data, raycast results etc. but this class is not accesible from game module, or at least I haven’t been able to do so. For example the following code

```
FPhysXVehicleManager* VehicleManager = GetWorld()->GetPhysicsScene()->GetVehicleManager();
PxWheelQueryResult * WheelsStates = VehicleManager->GetWheelsStates(VehicleMovement);

```

results in two unresolved external symbol errors (GetVehicleManager and GetWheelsStates). Any help will be very much appreciated, thank you.

---

<div class="post-metadata">

**Author:** ![MJBrune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MJBrune](https://forums.unrealengine.com/u/MJBrune)\
**Post date:** [November 24, 2015, 9:15pm UTC](https://forums.unrealengine.com/t/accessing-physx-vehicle-data/311719/2 "2015-11-24T21:15:32Z")

</div>

Hey Gastel71,

It turns out the class FPhysXVehicleManager is marked as private by the engine. To fix this you will need to add it to the API and some how pull it out from being marked private. I am not entirely sure how to do this but that’s the root issue.

Thanks,  
Michael Brune

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e6436d8c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e6436d8c](https://forums.unrealengine.com/u/anonymous_user_e6436d8c)\
**Post date:** [April 17, 2016, 1:02pm UTC](https://forums.unrealengine.com/t/accessing-physx-vehicle-data/311719/3 "2016-04-17T13:02:07Z")

</div>

@Gastel71 Did you found a way to get this working? I’m stuck with the same problem

---

<div class="post-metadata">

**Author:** ![Syedhs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Syedhs](https://forums.unrealengine.com/u/Syedhs)\
**Post date:** [June 26, 2016, 6:24am UTC](https://forums.unrealengine.com/t/accessing-physx-vehicle-data/311719/4 "2016-06-26T06:24:12Z")

</div>

Has anyone got this solved?

---

<div class="post-metadata">

**Author:** ![MJBrune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MJBrune](https://forums.unrealengine.com/u/MJBrune)\
**Post date:** [June 26, 2016, 6:35am UTC](https://forums.unrealengine.com/t/accessing-physx-vehicle-data/311719/5 "2016-06-26T06:35:29Z")

</div>

I think the solution is to grab the github source of UE4 and make a few permissions changes.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e6436d8c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e6436d8c](https://forums.unrealengine.com/u/anonymous_user_e6436d8c)\
**Post date:** [June 27, 2016, 3:25am UTC](https://forums.unrealengine.com/t/accessing-physx-vehicle-data/311719/6 "2016-06-27T03:25:26Z")

</div>

If you don’t mind edit source code, it would look something like this:  
(Engine\Source\Runtime\Engine\Public\PhysicsPublic.h ~ Line: 376):

```
ENGINE_API FPhysXVehicleManager* GetVehicleManager();

```

This will expose the method to the API, and than you can use it.
