How update simple vehicle component to a new skeletal mesh

Hello, i try create some logic with SimpleWheeledVehicleComponent and it just randomly change skeletal mesh when pawn is spawn. Problem is when it spawn, SimpleWheeledVehicleComponent not update and mesh is just like brick in that picture.

But when in simulate mode i try to change parametrs in pawn, SimpleWheeledVehicleComponent start works like it should.

And here is what i do in bp

Is any solution how i do that in start?

upd1: Found that the wheels are not created after start… only after changing parameters

upd2: Found this warning
LogVehicles: Warning: Cannot create vehicle for /Game/Maps/UEDPIE_0_MainProcedural.MainProcedural:PersistentLevel.Aipawnalt_C_0.SimpleWheeledVehicleMovement. UpdatedComponent has not initialized its rigid body actor.
causes this warning
LogScriptCore: Warning: Script Msg: Attempted to access index 0 from array ‘Wheels’ of length 0 in ‘/Script/PhysXVehicles.WheeledVehicleMovementComponent’!

Hi,

I just had the same Warning message after migrating a vehicle physics asset from one project to another. Solution in my case was to recreate and reassign the physics asset.

Best,
Florian

Bit late but go to the Vehicle BP, click on the Skeletal Mesh Component and make sure Collision/Collision Presets is set (to Vehicle). If it’s not set you will get “UpdatedComponent has not initialized its rigid body actor.”

I know these answers can be version specific so I wanted to add that this solution solved the problem in 4.24.3.
In my case my mesh component was set to the custom preset with the exact same options selected as the vehicle preset and it still caused crashing. After changing the preset to the vehicle preset, it stopped crashing.

version 4.24.3
In my case my mesh component was set to the custom preset with the exact same options selected as the vehicle preset and it still caused crashing. After changing the preset to the vehicle preset, it stopped crashing as frequently.

One thing I was doing was setting the skeletal mesh of the mesh component to empty, then changing it again to the new skeletal mesh I desired.
After removing the part where I set the skeletal mesh of the mesh component to empty, the crashes went away along with the warnings.

I hope this is helpful.