I am trying to create a system where I use corner points to define a region, this is so that I can check the exact unit shape in my triggers to make everything as accurate as possible. I was thinking of creating a coordinate system however one that would only use the highest and lowest XY coordinates would stop being accurate as soon as the region is leaning towards an angle. I tried to compensate this by changing the Y height requirement for the region by the same increment as the region would have but the system is very difficult to tune and doesn’t feel as the optimal solution at all.
The information that i can use is the location of the corner points, the location of the point I want to check and also what would be the angle of the region I am trying to create.
I am just wondering if anyone could come with suggestions for a better compensating system as any help would be appreciated.
I troubled with this problem as well, since they only allow circle and rectangle (not even able to rotate), my best bet is pixelation for the coordinates. For example, create an empty region. Run a double loop for x and y, increment by 1, check whether point x,y is in the needed region, if so then add a circle (shape) with radius of 0.5 to the empty region and so on... Accuracy is based on how small you want to choose the increment (pixel) to be.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am trying to create a system where I use corner points to define a region, this is so that I can check the exact unit shape in my triggers to make everything as accurate as possible. I was thinking of creating a coordinate system however one that would only use the highest and lowest XY coordinates would stop being accurate as soon as the region is leaning towards an angle. I tried to compensate this by changing the Y height requirement for the region by the same increment as the region would have but the system is very difficult to tune and doesn’t feel as the optimal solution at all.
The information that i can use is the location of the corner points, the location of the point I want to check and also what would be the angle of the region I am trying to create.
I am just wondering if anyone could come with suggestions for a better compensating system as any help would be appreciated.
I troubled with this problem as well, since they only allow circle and rectangle (not even able to rotate), my best bet is pixelation for the coordinates. For example, create an empty region. Run a double loop for x and y, increment by 1, check whether point x,y is in the needed region, if so then add a circle (shape) with radius of 0.5 to the empty region and so on... Accuracy is based on how small you want to choose the increment (pixel) to be.