Jump to content

Object that is moving with parent use


Dad72
 Share

Recommended Posts

Adam, the unparentMesh() function has a problem. The selection point of the child object is no longer in the center of the object but outside. parentMesh work perfectly.

[edit] I believe that the problem comes from my code and not from the unparentMesh function that seems to be perfect too.

 

Link to comment
Share on other sites

I think the best way to go would be to have a setParent(parent, keepWorldPosition) function on AbstractMesh, with keepWorldPosition defaulting to TRUE, seems like what most people would expect when parenting.

.parent should be a getter to avoid people setting it without doing any of the required calculations.

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