UE5 City Sample Vehicles

So, I understand Epic Games Offers the City Sample Vehicles for Free. But the City Sample Vehicles have destruction and deformation using C++ code and Blueprint Data Assets. Has anyone discovered a way to transfer the Deformation from the City Sample Project to their own to use with the City Sample Vehicles?

1 Like

I have tried. But It always get error. Did you figure it out?

Hey! So I have done a bunch of digging around with this and discovered a few things. The CitySample Project uses compiled code to setup their vehicles but this is not a requirement for the deformation. The deformation is setup using a control rig that move the skeletal mesh bones around that simulates the deformation. There is actually a bit of documentation on this. I recommend migrating the control rig over to your project where the CitySample Vehicles are and set your vehicles up to utilize the control rig and the skeletal mesh that comes with it. Once done, just setup the physics bodies to your vehicles and follow the documentation online to get the collisions to drive the control rig to deform your vehicles.

3 Likes

i have edited c++ to work in ue5main for vehicles, sadly not for crowd but i dont need crowd. did you get it to work as you described?

I can migrate it to new project and clean it, but the control rig is not working. I’m finding the solution.

i did look but it might be quite difficult as its based on vehicle_base class which is in cpp. but would be nice to get it working without source. good luck matey

The deformation doesn’t require the c++. I created the new vehicle_base in blueprint. Everything is working fine. But I can’t get the collisions to drive the control rig to deform the car.

Do you have any solution? Can you provide us that documentation link? When I set control rig class in the new project, the behavior of the car is exactly the same as when I don’t set control rig in the city sample project. The SKM_Exterior didn’t deform and completely still.

You should notify this problem as a bug to the UE team. The migration should work for any new projects.