MarianG Posted April 16, 2018 Share Posted April 16, 2018 Hi guys. It;s me again I'm haveing an transformNode with a lot of childs. How can I create or determine the boundingbox of parent, I mean a box which contain all the children. Here is a example http://playground.babylonjs.com/#X9KNXU And I found this https://www.babylonjs-playground.com/#TZSWRR, but it's only for one mesh, and I have multiple meshes and I have to merge them, I don't know. Any idea is welcome! Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted April 16, 2018 Share Posted April 16, 2018 Hello! you can replace your transformNode by an abstractMesh and use that: http://doc.babylonjs.com/api/classes/babylon.abstractmesh#gethierarchyboundingvectors Wingnut 1 Quote Link to comment Share on other sites More sharing options...
MarianG Posted April 17, 2018 Author Share Posted April 17, 2018 Exactly what I was looking for. I didn't kinow about this function. Many thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted April 17, 2018 Share Posted April 17, 2018 As always, my pleasure 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.