Vehichles don't transfer momentum when they bump into each other.

Hello,

I am making a small racing game where AI is following a spline in a choas vehicle. However when they collide they don’t seem to transfer momentum realistically and end up pinging off each other or completely stopping each other. I’ve been messing about with the weight of the cars and the friction of tyres but nothing seems to be working.
In essence I am wanting the cars to transfer momentum properly.

Front Wheels settings

Rear Wheels settings

Example video 1

At 1 second in a collision occurs and the cars react in what I think it the correct way.
Then again at 2 seconds it appears that momentum changes in an ok manner. As does the pit manouvre. However at 5 seconds when the car that is coming after crashes into the side of the car it is stopped dead actually getting pushed back with the crashed car sitting completely still…

p.s. CCD is already enabled on the cars

Any help appreciated, thanks

Example 2

1 Like

Any help appreciated, thanks

Hi Finlay, Welcome to the Forums.

Excellent question, I’m shooting from the hip here, but there is a ‘Velocity’ variable in the VehicleMovementComponent.

What you’re trying to do seems like one of those things that should ‘just work’, but you may be able to hack in some “reactivity” by feeding some values into velocity on impact.

Hey,
Thanks for the suggestion!
By adding an impulse on component hit it seems to have fixed the problem!

Thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.