meshfx // PIVOT
How to fix a model's pivot point
You fix a pivot point by moving the model's origin to where your project needs it, such as the bottom center of a prop or the hinge of a door, in your 3D editor before export. The pivot is the point a model moves, turns and scales around. Without a re-export, offset it inside a parent node.
pyrofx effects work today, and new accounts start with $5 of usage.
meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.
- Pivot: the object's origin
- Bottom center for props, the hinge for doors, the axle for wheels
- In the engine, offset the model inside a parent node
01 // HOW TO
Move the pivot in your 3D editor
- Decide where the pivot belongs. A prop that sits on the floor needs it at the bottom center, a door on the hinge line, a wheel at the axle.
- Place the editor's cursor or snap point there, for example by snapping to a vertex on the hinge or to the center of the bottom face.
- Set the object's origin to that point. Most editors call this Set Origin, Set Pivot or Center Pivot.
- Move the object so its origin sits on the world origin, then apply rotation and scale.
- Export, and rotate the model once in the engine to check that it turns around the right point.
meshfx has units and origin settings, can face a named axis and rename nodes. Set the scale using the known dimensions of your source, then inspect the output in Godot 4. Hosted meshfx runs are available in the Playground.
02 // IN THE ENGINE
Fix the pivot in the engine instead
If you cannot change the source file, add an empty parent: a Node3D in Godot, an empty GameObject in Unity, a THREE.Group in three.js. Put the model inside it, move the model so the pivot point sits on the parent's origin, and move and rotate the parent from then on.
Two engines can move the pivot directly. Roblox Studio has Edit Pivot on the Model tab, and Unreal Engine 5 has an Edit Pivot tool in Modeling Mode.
03 // BY FORMAT
Where each format keeps the pivot
- GLB stores a transform per node, so the pivot is the node origin. See GLB pivots.
- FBX can store a pivot apart from the object position, and importers read it differently. See FBX pivots.
- OBJ and STL have no transforms, so the file origin is the pivot. See OBJ pivots.
- USD builds the pivot from transform operations on the prim. See USD pivots.
Why does my model rotate around the wrong point in Unity?
Unity rotates a GameObject around its pivot, which comes from the model origin in the file. Move the origin in your 3D editor or use a parent.
Should I apply scale and rotation after setting the pivot?
Yes. Apply rotation and scale once the origin is in place, so the exported transform is clean and the pivot does not drift when scaled.
How do I make an imported model sit on the floor in Godot?
Put its pivot at the bottom center before export. Setting the node y position to the floor height then puts the model on the floor.
Do AI generated models need their pivot fixed?
Often. A model from an AI 3D generator usually has its origin at the center of its bounds, so move it to the base before use.
Explore meshfx outputs
Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.