# Adventures in UE5 vehicle land

**URL:** <https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281>\
**Category:** Character & Animation\
**Tags:** unreal-engine, UE5-0\
**Created:** [August 6, 2021, 10:29pm UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281 "2021-08-06T22:29:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tehKpayne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tehKpayne](https://forums.unrealengine.com/u/tehKpayne)\
**Post date:** [August 10, 2021, 4:08am UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/5 "2021-08-10T04:08:06Z")

</div>

4 wheeled vehicles using a subclass of UChaosWheeledVehicleMovementComponent:

A big problem is there’s some code that puts the vehicle to sleep. The vehicles seemed totally broken/frozen before, but someone figured out they need to wake up the object when driving the vehicle. I have the wake up call in the vehicle’s tick to brute force it, but it doesn’t fix everything.

> [@UE5 Chaos Vehicles](https://forums.unrealengine.com/t/ue5-chaos-vehicles/231624):
>
> Hi, thx for giving this early access, love you Epic. Here the first result of my test with Chaos Vehicles Plugin. Just create the project with the Vehicles Advanced (BluePrint), answer yes when Unreal 5 ask for updating the project on start. And hit play … The car land on the floor, the suspension still are working, the camera inside outside, the sound etc… But, the wheels do not turn left and right and the car do not move at all. I have two computers desktop (not laptop) and i do the same…

One case of freezing is when small forces are applied to it. I originally thought it was the final velocity that was the trigger to freeze it, but it doesn’t seem to be what’s happeneing in this particular case. I have 2 external forces that are always being applied, additional gravity and drag. When the sum of them is large (10k+ ?) the car remains unfrozen. With my current settings if I turn either one of them off then it starts freezing up. Keeping them both on and it’s fine.

This is with just the additional gravity and drag at zero:

v=Y08MUkRXayI

Notice that it starts off falling but with the additional gravity force it kicks in the freezing which makes it fall very slow. It’s stuck in a semi-frozen mode and the wheels aren’t kicking it out for whatever reason (physics thread results irrelevant to the freezing at this point?). Using my custom boost (just a raw x+ force) is needed to push it over. Adding the boost and the additional gravity is large enough to keep it unfrozen.

And here it is behaving “normally” with my current settings that has them both on

v=KJ\_42Ob-7gM

Applying none of my custom forces makes it look like this too, of course.

Another thing I’m not sure about is that my custom forces are behing applied in the game thread (movement component’s tick). I’m pretty sure all of the other forces oocur in the physics thread, so it would be ideal to put them there. It would be nice if the physics sim code could be properly subclassed but protected members prevent this from working.

> [@\[Chaos vehicle\] Trying to subclass simulation object](https://forums.unrealengine.com/t/chaos-vehicle-trying-to-subclass-simulation-object/241404):
>
> It seems like the vehicles are now designed to have all of their physics take place in the physics thread by a simulation object created by the movement component. So, to add functionality I want to subclass this sim object but I’m having problems… The simulation object in UChaosVehicleMovementComponent: TUniquePtr\<UChaosVehicleSimulation\> VehicleSimulationPT; /\* simulation code running on the physics thread async callback \*/ which is created in UChaosWheeledVehicleMovementComponent.h : vir…

I’ve made sure GVehicleDebugParams.DisableVehicleSleep = true so it skips at least one check that can sleep it (checks the velocity against SleepThreshold and makes sure you’re not on a hill)

---

_[View the full topic](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281)._
