jerome Posted January 7, 2015 Share Posted January 7, 2015 As I am stuck migrating my json element coordinates from threejs to bjs having different orientation axis system and different default default point of views, I needed to draw the axis of the bjs system coordinate to set my meshes the right places. So here's a very simple function (if it doesn't exist yet anywhere else) : showAxis(axisSize) x = redy = greenz = blue http://www.babylonjs-playground.com/#2EE9UD#3 camera is set at (3, 5, 10) hope it helps [EDIT] oops, wrong link Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted January 7, 2015 Share Posted January 7, 2015 Corrected your code : http://www.babylonjs-playground.com/#2EE9UD#3You'd a call problem, don't worry ^^ Quote Link to comment Share on other sites More sharing options...
jerome Posted January 7, 2015 Author Share Posted January 7, 2015 thanks, arf, I did the same as you Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted January 7, 2015 Share Posted January 7, 2015 And of course it is helpful You can also use axis in the debug layers (try a scene in the sandbox, draw debug layers and check "clickable labels". Click a label and you'll see the object's axis) jerome 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted January 8, 2015 Author Share Posted January 8, 2015 http://www.babylonjs-playground.com/#2EE9UD#4 improved the functionadded arrows and axis names GameMonetize and julien-moreau 2 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.