Wingnut Posted May 6, 2018 Share Posted May 6, 2018 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. Quote Link to comment Share on other sites More sharing options...
JohnK Posted May 6, 2018 Share Posted May 6, 2018 Having a quick forum scan before sitting down to eat. I think @adam did the work on setting and getting pivot positions. I have never tried any examples using getAbsolutePivotPoint perhaps I should. Not now though later in the week. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
JohnK Posted May 7, 2018 Share Posted May 7, 2018 14 hours ago, Wingnut said: 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. Thank you. You are right. PGs updated and PRed. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.