Blueprint vehicle movement tilt help

I am not that experienced in programming or blueprints, I know just very basic stuff.
I was following a tutorial for a vehicle, but I wanted to do some extra stuff. Like making the vehicle tilt on the side as it turns. Like in this image, the vehicle tilts on the Y axis not just turning.
image

The tutorial made the vehicle tilt backwards and forwards during acceleration via the Set Center of Mass on the X axis. Like this

Based on acceleration (W & S on WASD controls) the center of mass changes on X axis by 50.

Now I want to do based on steering (A & D keys) the center of mass changes on Y axis (left and right)
I did it like this.

The tutorial used add torque to make the vehicle turn on the Z axis left and right, i’m then adding the center of mass shift sideways. However! It is only doing it on 1 side, if I turn left mass goes left, if I turn right the mass still goes left :frowning:

I tried connecting the forward / backward enhanced input to a print string, W returns 1 and S returns -1. So it works, same with A and D so they are registred as negate / opposite actions. I don’t get why it only tilts to the left then yet I can turn left and right.

Any ideas or help with this?

Here is the vehicle

2 Likes


Though 20 is a rather low value, boosting it will increase the tilt

2 Likes

Thanks, I tried your solution but it did not work.

I am not using the Chaos Vehicle Pawn or system, it’s made from scratch from a tutorial for a hover car. So I keep getting errors about the Chaos Vehicle System in the nodes.

It also keeps only working on one side, no matter what I do.

Attaching a simple print string into the action input etc gives me a 1 and -1, so the 2 directions do work and I can turn just fine. I got the tilt to work in a few ways but always only 1 side or it disables the tilt I have forward and backwards when the vehicle accelerates.

Is there no way to just have this also tilt in a easy way, i’m too much of a noob to figure it out xD

Here is the simple steer / rotate left and right

This makes it tilt forward / backwards when driving / reversing from acceleration

Is there a way I can just make a simple thing like that but sideways?

Thanks for any help provided, I appreciate this as I try to learn :slight_smile:

My solution works

You just have to adjust the suspension for the sports car. It is too stiff to see the springs compress.

Thank you so much for the video :slight_smile:

But the Set Steering Input says target is a Chaos Vehicle Movement Component

I am not using any of the starter content or the UE5 provided cars, so it gives me an error. I also don’t know how to get the Vehicle Movement Component?

this is the car i’m using from a tutorial, I want it to be a simple car that I make from the ground up instead of relying on the provided UE5. So that I know how it’s made and the UE5 one has a ton of features and nodes I don’t need and confuses me, very complicated.

I’m guessing the Set Steering Input is what makes the car turn and then you apply the center of mass for tilting. But I don’t think I can use the steering input node with my vehicle :frowning:

This has some good info on physics based cars.

The vehicle movement component it build into the engine you just have to enable the chaos vehicle plugin.