I have a left wall, right wall and floor in my scene. I have a left shelf which is attached to the left wall.
Now, I’m trying to place objects on the left shelf. For that I wanted to get the bottom corner of the shelf for which I did
leftShelf.getBoundingInfo().boundingBox.minimumWorld.x
I also tried vectorsWorld[0].x
Now the console.log of leftShelf.getBoundingInfo().boundingBox.minimumWorld gives me a Vector3 with (-6,2.9,-5) as seen in the screenshot but console logging the .x function i.e. leftShelf.getBoundingInfo().boundingBox.minimumWorld.x on the Vector3 results in value of -1 and not -6.
I can’t figure out what I’m doing wrong. Any help?