DeathSoul Posted March 21, 2016 Share Posted March 21, 2016 Hey everybody ! Is there a solution for me to know which axis goes from the bottom to the top of my meshes ? It is not always the same for different meshes and I want to find the good one each time. Thanks for your time Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 21, 2016 Share Posted March 21, 2016 Hey! I'm not sure to understand. How do you define the bottom of your mesh? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 22, 2016 Share Posted March 22, 2016 DeathSoul (cheery name)... check out this doc: http://doc.babylonjs.com/tutorials/Position,_Rotate,_Translate_and_Spaces It has lots of playground demos that use a contraption named showaxes. I don't think showaxes is built-into our Babylon.Tools section, yet, but it COULD be. You will need to think about LOCALspace and WORLDspace. To "get your bearings"... check out that doc above. Also, I sometimes use a texture on my playgrounds called "orient.jpg". For proper visualization, SOMETIMES set axes.parent = myRotatingMesh;. This is so the LOCALspace axes rotate WITH the mesh. Most of the demos on that doc page... don't parent-together the axes or ever animate them. Write back if you have problems setting the pivot point of a parented-together set of axes/labels. 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.