Open KKzLEO opened 2 years ago
When I wrote this library, I ran into a bunch of problems with pixi's getBounds implementation. I ended up rolling a simpler version that, regrettably, assumes it shares a coordinate system with the viewport. An update to the library using getLocalBounds relative to a set parent (like the viewport) would fix the issue. I'm happy to accept a PR if you have the time. Otherwise you can extends SpatialHash
or Simple
to change the updateObject
function with this type of functionality.
@KKzLEO were you able to come to a solution?
Hi, thanks for creating this library, it's awesome. I encountered an issue is that my coordinate system is based on![image](https://user-images.githubusercontent.com/26006239/135995870-678eea7e-d839-41d8-a36b-60d21a8f7869.png)
container
, so the structure will be likethe coordinate of my graphics object is a local coordinate(relative to the parent container), and I wanna do culling so I add the children of the container to
cull
object, it will be likeseems the
cull
method is to use the x and y of the object directly instead ofworldTransforms.x
to do a comparison, it will cull some objects that are still in my view unexpectedly, is there any direction I can try?