4.6 KiB
Unreal Chaos Vehicle From Blender Pipeline
Use this procedure when preparing a Blender vehicle model for Unreal Chaos Vehicles and the user wants the model fixed at source rather than patched in Unreal.
Procedure
-
Inspect Blender units before export.
- If units are
METRICandscale_length = 0.01, the model is already centimeter-oriented for Unreal-style dimensions. - Do not apply an extra
0.01export scale unless measurements prove the mesh is still in meters.
- If units are
-
Establish source-of-truth orientation in Blender.
- Unreal forward must match vehicle forward.
- If throttle drives backward, fix the mesh and armature orientation in Blender/export, not by rotating the Unreal pawn.
-
Use simple Chaos wheel bones.
- Keep a root at the origin.
- Use one bone per simulated wheel.
- Wheel bone heads should be at wheel centers.
- Bone names must exactly match the Unreal wheel setup.
-
Clean import into Unreal.
- Delete stale vehicle assets before reimporting when solving import/export problems.
- Import as a Skeletal Mesh.
- Enable automatic PhysicsAsset creation through standard import settings.
- On UE 5.7, force legacy FBX importer if Python import uses Interchange and fails to create PhysicsAsset:
-ExecCmds="Interchange.FeatureFlags.Import.FBX 0"
-
Configure Chaos without hiding model errors.
- Start with
AdditionalOffset = FVector::ZeroVector. - Set wheel radius from measured Blender wheel diameter.
- If the vehicle floats or jumps, inspect suspension travel/preload before changing wheel radius.
- Start with
-
Animate wheels from Chaos data.
- Wheel rotation/steering comes from
FWheelAnimationData::RotOffset. - Suspension travel comes from
FWheelAnimationData::LocOffset. - Do not remove
LocOffsetunless intentionally freezing visual suspension for a diagnostic.
- Wheel rotation/steering comes from
-
Verify with runtime CSV/debug numbers, not only screenshots.
- Log actor height, pitch/roll, wheel centers, wheel bottoms, contact flags, suspension length, and wheel offset.
- A good static contact check is wheel bottom near ground Z and all contacts true.
Variant Vehicle Visuals
Use this pattern when the new vehicle variant reuses a working Chaos skeletal vehicle but needs a different body, tank, bunker, plow, or attachment:
-
Keep the skeletal mesh as the physics and animation carrier only.
- Do not rely on hiding a few old material slots if the source skeletal mesh still contains an obsolete cistern, brush, sweeper body, or other equipment.
- Material-slot hiding is fragile because old body sections can share generic orange/black materials with the cab.
-
Export a clean static visual mesh from Blender for the variant body.
- Remove or move obsolete objects such as
CISTERN,BROOM_METLA, and brush parts into a hidden/non-rendered collection before export. - Export the cleaned cab/frame/body/bunker as one static mesh.
- Exclude animated wheel meshes from the static visual if Chaos wheel animation should remain visible from the skeletal mesh.
- Remove or move obsolete objects such as
-
In the Unreal pawn, render only the parts of the skeletal mesh that must stay animated.
- For a reused KAMAZ skeletal vehicle, keep wheel-related material sections visible and hide the rest.
- Attach the cleaned static body visual to the pawn with no collision.
- Keep traces ignoring
selfand attached visual actors, otherwise startup ground traces, plow traces, or wheel diagnostics can hit the visual body and make the vehicle float or jitter.
-
Handle first-person/cabin cameras explicitly.
- OwnerNoSee on the skeletal mesh does not hide attached static body actors.
- When camera 0 is the driver's-eye view, hide the attached body visual for that camera mode while leaving the plow visible.
- Re-enable the attached body visual for outside cameras.
-
Reimport deliberately.
- In UE 5.7, FBX import/reimport can crash after
Interchange import completedin headless commandlets because ContentBrowser/Slate callbacks run without a valid Slate application. - If the
.uassettimestamp and size changed and Unreal can load the asset afterwards, the asset may have saved before the post-import crash. - Always verify the imported asset loads, then rebuild C++ and restart the editor.
- In UE 5.7, FBX import/reimport can crash after
KAMAZ 5360 Reference Values
For the current KAMAZ 5360 prototype in C:\git\kamaz5360:
- wheel diameter from Blender: about
107.6 cm; - Chaos wheel radius:
53.78 cm; - vehicle mass:
9500 kg; - rear wheel drive;
- rear visuals represent twin rear wheels, but Chaos simulates four wheels.
See projects/garage/kamaz5360-chaos-vehicle.md for the full project-specific recipe.