vrld / HC

General purpose collision detection library for the use with LÖVE.
http://hc.readthedocs.org/
402 stars 48 forks source link

moveTo and addRectangle (x,y) parameters are not the same. #17

Closed jmillikan closed 12 years ago

jmillikan commented 12 years ago

I spent some time pulling hair out before I started using HC's :draw to debug. It didn't occur to me for a very long time that addRectangle(x,y...) and moveTo(x,y) would put rectangles in different places. This should probably be explicit in the documentation of shape:moveTo(x, y), and a hint in HC:addRectangle also might save others some time.

vrld commented 12 years ago

You're right, the documentation should state that shape:moveTo() moves the shape's center.