You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's add support for maps whose coordinates span an arbitrary rectangle. So you could have a map on, for example, (-20,-20)-(20,20) or (10000, 5000)-(10030, 5030). Basically we just need to use a Rectangle in FieldOfViewMap instead of a Size.
A possible interface would be:
constmap=newFieldOfViewMap(-100,-50,100,100);// (x, y, w, h)// map now ranges from (-100, -50) to (-1, 49)map.addBody(-10,-30);
This shouldn't hurt performance, but it would help users avoid needing to map their own coordinates into a (0,0)-origin map space. See discussion in #1
The text was updated successfully, but these errors were encountered:
Let's add support for maps whose coordinates span an arbitrary rectangle. So you could have a map on, for example, (-20,-20)-(20,20) or (10000, 5000)-(10030, 5030). Basically we just need to use a
Rectangle
inFieldOfViewMap
instead of aSize
.A possible interface would be:
This shouldn't hurt performance, but it would help users avoid needing to map their own coordinates into a (0,0)-origin map space. See discussion in #1
The text was updated successfully, but these errors were encountered: