Jump to content

Changing mesh center point

Art Vandelay

Recommended Posts


I noticed that when I load a mesh at a certain position, the bottom center of the mesh will be at that position. For example, If I create a ground and then load a mesh at (0,0,0) then the mesh will be on the ground. So the actual center of the mesh is above the ground.

How can I change the center of the mesh so that, for example, its actual center appears at (0,0,0)? Is there some sort of offset I can add? I hope the question makes sense.


Link to comment
Share on other sites

Hi !

What do you mean by "loading a mesh" ? If you are actually importing a mesh (such as an .OBJ file) then its pivot is already given. You can change the pivot of your mesh by editing your 3D model in Blender/3DS Max etc.. and exports it again.

Moreover, in BJS, you can directly manipulate Pivot of a mesh. https://doc.babylonjs.com/how_to/pivots
Playing with Pivot and BoundingBox data to get actual center (so, the "offset") of  your mesh should be enough to reach your goal !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...