Skip to content

BoundNodes do not use width and height for retrieve() calls #6

@Qqwy

Description

@Qqwy

I am trying to use this QuadTree implementation as a collision detection algorithm with lots of tiles.

however, it seems that there is no special _findIndex() method in the BoundNode class. This means that no matter the size of the colliding object, only the top left corner will be used to determine what objects to retrieve.

This is easily fixable by adding an extra check in the retrieve() function as well as an extra function that simply returns all the contents of a certain node. I'll upload my own fix shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions