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'!
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.
answered Mar 12 '18 at 12:39 PM
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."
answered Jun 13 '19 at 06:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here