CodePudding user response:
Physics2D BoxCast is 2 d, so a plane, is four Angle, as long as to calculate the four corners of the rectangle, and then use the Debug. DrawLine method, the four Angle formed by four side wires, can know the area,CodePudding user response:
Physics2D BoxCast is 2 d, so a plane, is four Angle, as long as to calculate the four corners of the rectangle, and then use the Debug. DrawLine method, the four Angle formed by four side wires, can know the area,