NRA Posted November 8, 2018 Share Posted November 8, 2018 Hello, In the following PG https://www.babylonjs-playground.com/#K9PZHG I suppose than the sphere will move with the ground because it is a skeleton chaining its, but you can see than the ground go up and the sphere do not follow it. somebody knows why? I do the Skeleton and Bone creation and attaching well? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted November 8, 2018 Share Posted November 8, 2018 Hello, what is your goal? Creating bones without having weights and indices stored in the mesh will not work. (https://doc.babylonjs.com/how_to/how_to_use_bones_and_skeletons) Can you tell me more about the end goal? Quote Link to comment Share on other sites More sharing options...
NRA Posted November 8, 2018 Author Share Posted November 8, 2018 Hi @deltakosh I want to link the sphere in ground for when the ground move the sphere move with it! If I create the weights and indices in the ground it works? How I do that? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted November 8, 2018 Share Posted November 8, 2018 We have a better option for that https://www.babylonjs-playground.com/#K9PZHG#2 (check line #30) Quote Link to comment Share on other sites More sharing options...
NRA Posted November 8, 2018 Author Share Posted November 8, 2018 @Deltakosh In fact my final goal is to have some objects chained to move together and rotating in accordance with the parent object. Like the action we have in bones of an arm. I suppose than bones is the easiest way to do it! Quote Link to comment Share on other sites More sharing options...
Dad72 Posted November 8, 2018 Share Posted November 8, 2018 With: mesh2.parent = mesh1; mesh3.parent = mesh1; You can link multiple child objects to a parent. Then when the parent moves or pivots, all the children do the same. Quote Link to comment Share on other sites More sharing options...
NRA Posted November 9, 2018 Author Share Posted November 9, 2018 Hi @Dad72 I see your point, and will try to use this way. Thanks 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.