RectObstacle2D

constructor(x: Double, y: Double, w: Double, h: Double)

Builds a new RectObstacle2D, given a point, the width and the height.

Parameters

x

x coordinate of the starting point

y

y coordinate of the starting point

w

the rectangle width. Can be negative.

h

the rectangle height. Can be negative.