When creating a rectangle via triggers what are the 4 values? I would think it would be 8 values letting me put x and y for each corner... but it's 4 values so what's the dealeo?
Is the length and width a diameter or is it the "radius" of the rect? ( I know radius and diameters are technically not part of a rect, but I'm just talking about in theory).
Basically is it split between both sides or is it asking for 1 side and just does it twice? If u get what im trying to say...
Yeah, looks like Magi66 and I were completely wrong. That's the way it is when you're editing a region on the terrain editor, so I just assumed triggers would be the same.
When creating a rectangle via triggers what are the 4 values? I would think it would be 8 values letting me put x and y for each corner... but it's 4 values so what's the dealeo?
~Thanks for reading.
@Skittles17: Go
Center of the region (X,Y), and Length, Width of the region.
Center? sure it's not top-left?
It's the center. Just like a circle is center (x,y) + radius, a rectangle is center (x,y) + length and width.
Is the length and width a diameter or is it the "radius" of the rect? ( I know radius and diameters are technically not part of a rect, but I'm just talking about in theory).
Basically is it split between both sides or is it asking for 1 side and just does it twice? If u get what im trying to say...
thanks for responding.
Rectangles are always quadrangular with 90° corners, so no reason for 8 values.
The 4 values are: MinX, MinY, MaxX, MaxY
So basically the lower left and upper right corner.
It does NOT specify length and width. ONLY Circle To Region has the center point plus diameter.
Yeah, looks like Magi66 and I were completely wrong. That's the way it is when you're editing a region on the terrain editor, so I just assumed triggers would be the same.
@s3rius: Go
That sounds more correct. =D I'm happier that way too. I just tested this, and you're definitely correct too!~ Thanks, yipee!~