Just what is the source in cocos2d boundingBox

So, I have a CGRect, and it has the size and origin of the CGpoint call. Does the center of the square or upper left occur?

+3
source share
1 answer

CGRect determines how much the bounding box extends along each axis from the start point, so it will never be the center.

However, cocos2D has a default coordinate system, where the origin is in the lower left corner of the view, so the origin in this case will be the lower left field.

+5
source

All Articles