# 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:** 9\
**Page:** 1

<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 6, 2021, 10:29pm UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/1 "2021-08-06T22:29:32Z")

</div>

If there’s a better place for this let me know…

I’ll be trying to implement a few vehicle types derived as much as possible from UE4 version I have, and give as much feedback as possible here.

The first up is a plane sim and a fly through of my ue5 mapping experiment. I’ll reply later a write up of the technical issues, etc…

v=3YCXkTn3eMA

---

<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 7, 2021, 5:22am UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/2 "2021-08-07T05:22:07Z")

</div>

A plane sim was pretty straight forward in UE4 using a simple vehicle sim for the plane’s wheels. Since there is no chaos version of physx’s simple vehicle it’s not surprising there are issues… hopefully they will implement some version of that in the future.

Wheels aside, a lot of it pretty much carried straight over. Physics asset, animation bp and all seemed pretty much unchanged.

Issues:

Wheels: Right now the only chaos wheeled vehicle sim requires 4 wheels while we only want 3. Since the first two wheels are considered in the front I tried making the 2nd wheel use the same bone as the first one, to mirror turning and spinning animations and physics. For whatever reason the front wheel doesn’t turn with steering but it does roll just fine. I’ve also tried setting wheel 2 to the engines turbine bone which should be higher than the other wheels and solve some potential issues with it. It made it spin but didn’t fix any physics.

Center Of Mass: A big problem is that the COM adjustments don’t seem to work as expected.

v=rH6Vv3yh-8o

This is with the mesh component’s Center Of Mass Offset (X=200,Y=0,Z=20). Since it’s wanting to do wheelies (pointing nose up) it seems the COM is too far back. As I move it up 250 units at a time, it gets a little better each time until it starts bouncing around. It seems there’s no way to get it to act right.

v=DXH6EIOd-x8

As far as I can tell this is the only COM setting that actually does anything but it doesn’t get the needed/expected results. There doesn’t seem to be many options left at this point in time, but I’m probably going to use the plane’s mesh for a car sim and see how far I can get.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 7, 2021, 1:06pm UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/3 "2021-08-07T13:06:38Z")

</div>

This is exciting. Please keep going! You listing the _gotchas_ is super revealing.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65969482](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65969482](https://forums.unrealengine.com/u/anonymous_user_65969482)\
**Post date:** [August 7, 2021, 9:03pm UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/4 "2021-08-07T21:03:01Z")

</div>

yes its cool!

---

<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)

---

<div class="post-metadata">

**Author:** ![mgg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mgg/32/88716_2.png) [@mgg](https://forums.unrealengine.com/u/mgg)\
**Post date:** [December 3, 2021, 7:54pm UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/6 "2021-12-03T19:54:59Z")

</div>

Good Afternoon,  
I am so stuck trying to make my vehicle fly. Right now I am just trying to make my car fly and when I add some upward force to the mesh.BodyInstance.AddForce(). The physics sim is going to sleep and not responding anymore to input. How would I go about making a flying vehicle using Chaos ? I have a lot of questions so starting with this will help tremendously.

---

<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:** [December 20, 2021, 7:15am UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/7 "2021-12-20T07:15:08Z")

</div>

Sorry for the late response…

You have to call wake on your body every tick (mentioned in my above post) and use the movement component’s “UpdatedPrimitive” (assuming everything’s setup right)

---

<div class="post-metadata">

**Author:** ![Freshgale2.21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Freshgale2.21](https://forums.unrealengine.com/u/Freshgale2.21)\
**Post date:** [January 17, 2023, 5:42pm UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/8 "2023-01-17T17:42:16Z")

</div>

@tehKpayne Hey I’m also trying to do a plane with the chaos feature. Is it possible for you to share the project ?

---

<div class="post-metadata">

**Author:** ![Imagine-Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Imagine-Games](https://forums.unrealengine.com/u/Imagine-Games)\
**Post date:** [January 14, 2024, 6:59pm UTC](https://forums.unrealengine.com/t/adventures-in-ue5-vehicle-land/244281/9 "2024-01-14T18:59:31Z")

</div>

any chance you’d be up for a tutorial or marketplace or open source project if you’re open to it…
