dotnet-ad / Humper

Collision detection for Axis-Aligned-Bounding-Boxes (aka AABB) in C#.
MIT License
104 stars 19 forks source link

Add(IBox) in world #4

Closed MunWolf closed 6 years ago

MunWolf commented 6 years ago

I would like to have an Add(IBox) to add a box into the world as opposed to Create, this is mostly to remove a box from all collisions without having to recreate the IBox class when I want to add it again.

Cheers, Richard

P.S. I would fix this use case by extending your World class but sadly the grid inside it is private not protected.

CloneDeath commented 6 years ago

This should be sufficient to meet any of your needs.