hulahula Posted December 1, 2017 Share Posted December 1, 2017 Hello It is possible turn off parent rotation ? var box = BABYLON.MeshBuilder.CreateBox("box1", 1, scene); var sphere = BABYLON.MeshBuilder.CreateSphere("sphere1", 1, scene); box.parent = sphere; Quote Link to comment Share on other sites More sharing options...
hulahula Posted December 1, 2017 Author Share Posted December 1, 2017 never mind i solved this Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted December 4, 2017 Share Posted December 4, 2017 Hi @Alenvei Could you post your solution for future readers please? We like to think of this forum kind of like a "stackoverflow" for babylonJs, so when people have problems, the solution is often just a forum search away. cheers. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
hulahula Posted December 5, 2017 Author Share Posted December 5, 2017 This is my solution for "how turn off parent rotation" here : https://playground.babylonjs.com/#CFMBHZ#1 You can try it guys . Have fun adam 1 Quote Link to comment Share on other sites More sharing options...
Arte Posted December 6, 2017 Share Posted December 6, 2017 10 hours ago, Alenvei said: This is my solution for "how turn off parent rotation" here : https://playground.babylonjs.com/#CFMBHZ#1 You can try it guys . Have fun I'm not seeing parenting at all??? Here is my solution for you https://playground.babylonjs.com/#CFMBHZ#2 As @Wingnut would say PARTY! Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 6, 2017 Share Posted December 6, 2017 https://playground.babylonjs.com/#CFMBHZ#5 Just a little bit more dynamic of a solution, PARTY! I should prolly do a pull request for this function but I added: BABYLON.Mesh.Manipulate(mesh=>BABYLON.Mesh, transforms=>Object.Object.String, includeChildren=>Bool); Arte 1 Quote Link to comment Share on other sites More sharing options...
adam Posted December 6, 2017 Share Posted December 6, 2017 Why even parent the boxes? edit: I see Alenvie's solution doesn't use parenting. hulahula 1 Quote Link to comment Share on other sites More sharing options...
hulahula Posted December 6, 2017 Author Share Posted December 6, 2017 Sorry @Arte I badly expressed.Yes it is not parenting . My solution work for me like the parenting and is simplest. But I am only autodidact Who likes to learn new things. here is my example how it works with WASD movement, with my solution of FAKE parenting : https://playground.babylonjs.com/#CFMBHZ#8 sorry for my bad English. Quote Link to comment Share on other sites More sharing options...
adam Posted December 6, 2017 Share Posted December 6, 2017 Another solution using a TransformNode as a parent of both the boxes: https://playground.babylonjs.com/#CFMBHZ#9 https://playground.babylonjs.com/#CFMBHZ#10 hulahula and Arte 2 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.