Builds a new RectObstacle2D, given a point, the width and the height.
x coordinate of the starting point
y coordinate of the starting point
the rectangle width. Can be negative.
the rectangle height. Can be negative.