getzel Posted October 15, 2016 Share Posted October 15, 2016 Hello ! In the mesh object, there is an array called subMeshes containing the different materials applied to the mesh. It would be cool to be able to access to the position of the "submesh". For example, a black textured material for the boots and we can get the center position of the boots. It sounds maybe useless because some materials are applied everywhere so : a way to access to the position of a specific part of the mesh, a vertex group (in Blender) for example. Is there a way to access to the position of a bone in world global space and then copy this position for a mesh (without attachToBone) ? I tried to check the numbers in all the matrices included Worldmatrix but it doesn't give the right thing. Thx for your attention. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted October 15, 2016 Share Posted October 15, 2016 Hi @getzel Take a look at multi-materials :-) https://www.eternalcoding.com/?p=283 Quote Link to comment Share on other sites More sharing options...
adam Posted October 15, 2016 Share Posted October 15, 2016 6 hours ago, getzel said: Is there a way to access to the position of a bone in world global space and then copy this position for a mesh (without attachToBone) ? http://www.babylonjs-playground.com/#11BH6Z#97 getzel 1 Quote Link to comment Share on other sites More sharing options...
getzel Posted October 15, 2016 Author Share Posted October 15, 2016 @adam Thank you 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.