AndyBeaulieu Posted February 17, 2014 Share Posted February 17, 2014 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 Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted February 17, 2014 Share Posted February 17, 2014 Hi, A bone is just a a point (joint). If you want to retrieve the bone's scale, you have to get the distance between a bone and his parent. Same thing for the orientation you can try bone LookAt his parent. Hope this help. Sam 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.