i got a predifined size block and only a part of the block is inside the wall (not always the same part of the block)
and i subtract this
how would i deted how much was subtracted from this one subtract block?
i got a predifined size block and only a part of the block is inside the wall (not always the same part of the block)
and i subtract this
how would i deted how much was subtracted from this one subtract block?
width and height for the area of the square, and then multiply by the depth of the white part for area subtracted. SHOULD work.
i’ll try making it work in my script (i gotta figure something else first that i got a bit of idea how to do)
You have to account for the position too. If its not even colliding the wall, then there will be no difference.
You saying that i just nothiced something… how do i detect if it is just unioning the air? i tried using GetPartBoundsInBox() and GetTouchingParts() but they still detecting even if the part are not even touching a thing
Don’t use this. Instead, you need to find the intersection between the 2 parts, then subtract the total area of the target by total area of the intersection of the 2 parts.
i just give up, i’m not smart enough to figure out how to do those things
as i said before, “width and height for the area of the square, and then multiply by the depth of the white part for area subtracted. SHOULD work.”