Jump to content

display bones in skeleton


AndyBeaulieu
 Share

Recommended Posts

Hello,

 

I am trying to create a visual representation of the bones contained in a skeleton, by using a bunch of simple Box Meshes.

 

I am able to show the position of the bones using the _worldTransform.m[12], [13], and [14] as shown below.

var absPos = new BABYLON.Vector3(bone._worldTransform.m[12], bone._worldTransform.m[13], bone._worldTransform.m[14]);boxMesh.position = absPos;

But now I would like to scale and rotate the boxes so that they visually represent the bones in a skeleton.

 

How can I get the scale and rotation of each bone in this case?

 

Thanks!

-Andy

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