To use this guide for Blender, you must install the Better Fbx Importer & Exporter addon and use the FBX export for it. If you unchecked scale down when importing, set the export scale to 1. If you left scale down checked then leave the export scale at 100.
Importing your mesh into Unreal Engine¶
- Import your model into Unreal Engine.
- Make sure Create Physics Asset is checked.
If your model is already imported simply right click your mesh and navigate to
Create and Assign.
You should now have your mesh and Physics Asset inside the editor.
Rename your mesh to match the corresponding files it's going to be replacing. The Physics Asset can be named anything since it is not replacing an existing file.
Editing the Physics Asset¶
Depending on your mesh, you don't always have to make a custom Physics Asset. Sometimes the default one will work fine.
- Right click on your Physics Asset and hit Edit.
The Physics window will open and you will see your model with these capsules all around it.
Resize, move, and rotate these capsules around to match your model more closely. These capsules prevent mesh with physics from clipping. You can also add or delete capsules of different shapes to fit your needs.
Once you have a result you're happy with hit Save.
Painting Cloth Physics onto your Mesh¶
- Right click on the mesh you want to add physics to and hit Edit.
- The mesh viewer window will open up.
Hit Section Selection up at the top and select the mesh you want to add physics to.
Go to Window at the top and open up the Clothing window.
Right click on your mesh and select Create Clothing Data from Selection. Make sure the Physics Asset is set to the one you created and that Remove from Mesh is unchecked and hit Create.
You should now have an asset under the Clothing Data tab click it and then click Activate Cloth Paint at the top.
Your mesh should now highlight in purple and some options should appear in the Clothing window.
In the options tweak the settings to your liking. Paint Value determines how strong the physics are. A higher value will make the physics more floppy and appear more white, while a lower value will make them stiffer and appear more grey.
Paint the parts you want to apply physics to your mesh.
Use different values to blend where the physics start and end for a smoother transition.
- Hit Deactivate Cloth Paint. Physics should now be applied to you mesh.
To test out physics right click on the mesh and hit Apply Clothing Data. To reset the mesh right click again and hit Remove Clothing Data.
After painting the physics onto your mesh, you can tweak how the physics work by expanding Cloth Config in the Clothing window.
Tweak the settings to get different physics reactions. (Increasing the X, Y, and Z values in Damping will cause the physics to be more floaty as if it were moving in water, or tweak the gravity to make the physics more floaty and ghostly)
- As before, to test out the physics right click on the mesh and hit Apply Clothing Data. To reset the mesh right click again and hit Remove Clothing Data.
Cooking your assets¶
- Replace the mesh as you would normally. The physics asset can be anywhere as long as you copy it over.
Save all and select
Cook Content For Windows.
If all went well your mesh should have physics ingame now!