Sign in to follow this  
DeathSoul

Knowing mesh axis

Recommended Posts

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 :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.