As I said on Title, how would I get the TouchStatus of two guis that is rotated?
I couldn’t think of any idea so I did make topic.
How would I approach this?
I already have a function that gets the TouchStatus of two guis.
But, It doesn’t support Rotations.
So, What I want is basically scripting a function that checks if two guis are currently touching each others.
so I already have a script that checks if the two guis are touching.
But I didn’t script it to support Rotations of GUIs.
As you can see there are red transparent rectangle, and a white frame in each of pictures.
Red transparent rectangle shows the hitbox of the white frame when white frame is rotated by 0 degrees.
Picture 1 has white frame and transparent red rectangle aligned so it just shows pink frame. ( which means hitbox is aligned on the white frame. )
But, Picture 2 has rotated white frame and transparent red rectangle (hitbox) un-aligned, so it shows bit different. ( I am saying that picture2’s white frame’s hitbox is different to the self )
and it is hard to script a function that returns true if two guis are touching when one of the guis are rotated or both are rotated.
TouchStatus I meant if the two guis are touched or not. (true or false)
I imagine you have a system for that, you can detect the position system with AbsolutePosition, the size system with AbsoluteSize and finally, the rotation system with AbsoluteRotation, this will give you information if a gui is over a UI or touching a UI.
So I mean, scripting a function that detects whether if two guis are touching or not, including rotations. is SO HARD to do, and I couldn’t think any idea of doing it.
I know AbsolutePosition,Size,Rotation, I am saying that I can’t know what should I do to script a touch ing script with rotation.