davidfig / pixi-cull

a library to visibly cull objects designed to work with pixi.js
MIT License
109 stars 15 forks source link

Respect object's pivot when calculating bounds #10

Closed richard-ejem closed 3 years ago

richard-ejem commented 3 years ago

Currently the culling works badly when object pivots are used, because changing the pivot moves object's topleft coordinate relatively to parent.

This PR fixes it.

davidfig commented 3 years ago

Awesome. Thanks! Just published it as v1.0.0.