Jump to content

getAbsolutePivotPoint() working properly?


Wingnut
 Share

Recommended Posts

Hi guys/gals.

   I've been working with pivotPoints, recently.

http://playground.babylonjs.com/#VJMEH8#10

Right clicking on the blue box... we can easily see where its pivotPoint is located.

My objective was to .position pink sphere... AT blue box pivotPoint.

I needed to use an 'add' in line 52.

kid1.getAbsolutePivotPoint() and kid1.getPivotPoint() - neither returns a worldSpace coordinate.

Does that seem normal?  I would have thought kid1.getAbsolutePivotPoint() would have returned a worldSpace coordinate... that I could use to position the pink sphere... without using .add.

[ Wingy looks around for .getPivotPointInWorldSpace() ]  :)

Thanks for info.  I think I'll need a couple more months of study... for http://doc.babylonjs.com/how_to/pivot3.2

@JohnK/others... if you have a moment, could you check playgrounds in that doc... to make sure they are acting as you wish them to act?  Thx.

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