Jump to content

Parent object rotation problem


Snow Bars
 Share

Recommended Posts

Hello!

I have a problem with parent mesh rotation. Scene has two objects which will be rotation around center of bottom object. If bottom object placed on scene center then objects rotation correctly. But if replace bottom object then stranges begin... I create parrent mesh for object and try to rotate it. http://www.babylonjs-playground.com/#1KU02Z#0

Please tell me where I wrong?

Link to comment
Share on other sites

On this example  http://www.babylonjs-playground.com/#1KU02Z#1  all correct. 

I try describe my situation.

I have any dragable objects on scene. If drag one of them all objects drags as single object. It implemented via recalculation its coordinates. Bottom object is platform for upper objects. If rotate bottom object all object upper it must rotate around bottom object center. For this goal I try assembly rotating objects in single parrent object and rotate it. If assemble object -> rotate it -> disassemble object -> move "primary" objects -> assemble parent object -> rotate parent object then objects rotate any strange. 

I can't understand that happens.

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