Preparing the mesh for Unity: Difference between revisions

From KSP 2 Modding Wiki
No edit summary
No edit summary
Line 1: Line 1:
  Prerequisites
  Prerequisites
[[Setting up Unity]]
  [[Modeling the mesh in Blender]]
  [[Modeling the mesh in Blender]]
[[Texturing the mesh in Substance 3D Painter]]


# In Blender, make sure that the origin of the object is where its center of mass would be.
# In Blender, make sure that the origin of the object is where its center of mass would be.

Revision as of 23:29, 23 February 2024

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.