What do you want to achieve? Keep it simple and clear!
Inventory Systems Like No More Room in Hell. Example Below
What is the issue? Include screenshots / videos if possible!
I’ve managed to position each item on the torus UI, but the problem is i’m not sure how to incline and position (basically make, as a whole) the separating bars between those items (with code).
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Didn’t find a DevForum post about this one.
Anyone know what math would I have to use to incline it, and the logic behind positioning the separations? Please don’t provide code directly, I want to learn
UI elements have a rotation property which you can use to orient the bars how they need to be.
In terms of scripting this up you’ll need some 2d polar coordintate magic. This is to say you can make use of parameterising the positions of the gui elements as x = rCos(theta), y = rSin(theta) . The rotation property can then be set using the angle theta from these parameters.
I think you might only need to make use of the math.atan2(y, x) function but that is kinda based on polar coordinates which is why I mentioned them.
I haven’t learnt Cos and Sin yet (I’m 15 lol), but I did make use of the math.atan2() and it’s helped a lot. Thanks! I will come back in the future and work out a method based on your suggestion xD