Preparing the mesh for Unity

From KSP 2 Modding Wiki
Revision as of 23:29, 23 February 2024 by Safarte (talk | contribs)
Prerequisites
Modeling the mesh in Blender
  1. In Blender, make sure that the origin of the object is where its center of mass would be.
  2. Move the object along the vertical axis so that it rests at 0;0.
  3. The object must be at scale 1 (otherwise the shape will not be preserved in Unity). If not: Ctrl+A > Apply Scale.
  4. Also Apply Rotation in order to prevent issues in the game.
  5. Right click on the object name > Select hierarchy.
  6. Click on File > Export > FBX. Give a specific name to the file (eg: my_mod_engine.fbx).
  7. Check Selected objects.
  8. Uncheck Precalculate animation (“Bake animation”).
  9. Click on Export.