I'm trying to learn babylonjs and build a simple tower defense game. However, there is a problem i could not solve.
I have imported a tower model with some weapons on it (more than 20 meshes). When I print positions of these meshes, it says they are all at 0,0,0. However, when I try to rotate or change position it behaves like its pivot position is at 0,0,0 and their object position is at another point. So, I'm having trouble when i try to move and rotate the weapon meshes around the tower model. I have tried to set bounding box's center point as pivot point of the object, but it did not work. Still when i try to rotate weapons, it rotates around another axis. How can I solve this problem?
If it's not clear I can send a playground demo to explain it better.