Search the Community
Showing results for tags 'parent-child'.
Hi I have some problem with collider of child box. If we set parent box and add child box. If Child have its box collider, and if we rotate parent box, child is changing (potition and rotation), but child's box collider is not changing (position and rotation). How should we achive that box-collider will follow child when we (rotate or maybe change position of parent). Here is example of what I am talking about. (here is grid-box seen as box-collider of child-box. and grid-box is not changing position and rotation). http://www.babylonjs-playground.com/#MBFUI#9 (or mybe http://www.ba
These are two simple questions, regarding parent-child relationships. It's not that I don't get this: " Any postion, rotation and scaling transformations made to the parent... prior to assigning it to children... will also be applied to the children when the parent is assigned. " What's happening rather is that when I load two meshes and make the first one the parent of the second or vice versa, there is an initial displacement in the child's position. On loading the meshes, this is the only line of code involving them, the rest sets up the camera, lights, etc: newMeshes.parent = newMe