Jump to content

setPivotMatrix with MergeMeshes


Dad72
 Share

Recommended Posts

Hello,

When using MergeMesh and selecting the object with pickedPoint. The pivot is at the coordinate 0, 0, 0 of the scene even if the objects is a 20, 20, 20 for example.

How do you put the pivot in the center of the merge objects?

The pivot movement works well on a normal object, but not when you merge several objects

Example here, you can see that the pivot is in the center of the scene and not in the center of the object that was merged.

http://babylonjs-playground.com/#RZGEH#5

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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