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
I find it unclear in the documentation how a box is constructed. It is said that the vector which is passed when constructing the box represents the bottom left corner (here), but in sat.js it says the top left corner (and here). At last I figured out that it is the top left to the local coordinate grid. It would be a good thing if you pointed that out. I know that there is a little note in the polygon section, but I didn't see that til now.
I most say though that the documentation is really nice and most of the time I don't have to look at it. The methods and properties are self explanatory.
The text was updated successfully, but these errors were encountered:
The "bottom left" also tripped me up a little bit. Looking at the toPolygon method, it appears it's the top left of the shape? I'm pretty sure it's just the way I'm thinking about it but positioning in CSS, SVG, Canvas etc 0,0 is the top left of element/window.
To me, it would make more sense for the documentation to read as the "top left corner of the box".
Edit - Awesome, simple and focused library BTW. I use it to handle the collision detection in my SysPlot library (Demo/Github) Thanks!
I find it unclear in the documentation how a box is constructed. It is said that the vector which is passed when constructing the box represents the bottom left corner (here), but in
sat.js
it says the top left corner (and here). At last I figured out that it is the top left to the local coordinate grid. It would be a good thing if you pointed that out. I know that there is a little note in the polygon section, but I didn't see that til now.I most say though that the documentation is really nice and most of the time I don't have to look at it. The methods and properties are self explanatory.
The text was updated successfully, but these errors were encountered: