Jump to content

axis function


jerome
 Share

Recommended Posts

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 = red

y = green

z = blue

 

http://www.babylonjs-playground.com/#2EE9UD#3

 

camera is set at (3, 5, 10)

 

hope it helps

 

[EDIT] oops, wrong link

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