Hello, How can i get the corner Positions of a scaled cube? i.e
Even though the sketch is 2d, imagine it beeing 3d
Thanks in Advance.
Hello, How can i get the corner Positions of a scaled cube? i.e
Even though the sketch is 2d, imagine it beeing 3d
Thanks in Advance.
Meshes all contain a member called āboundsā: Unity - Scripting API: Mesh.bounds
I think this what you want. Keep in mind, mesh.bounds will give you the local/model-space values for your mesh boundries.
If you want the WORLD values, you might choose to use a different version of āboundsā, the one provided by Renderer components:
You could also compute it manually, though obviously, thatās a bit trickier. Let me know if you want more details on that.