-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Hi, thanks for creating this library, it's awesome.
I encountered an issue is that my coordinate system is based on container, so the structure will be like

the 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 like
const collectChildren = (viewport: Viewport) => {
return _flatten((viewport.children as Container[]).map(({ children }) => children));
};
cull.addList(collectChildren(viewport));
cull.cull(viewport.getVisibleBounds());
seems the cull method is to use the x and y of the object directly instead of worldTransforms.x to do a comparison, it will cull some objects that are still in my view unexpectedly, is there any direction I can try?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels