I'm just posting this off topic message before going to my question because I'd really like to thank you a lot for your free physics system. Without it, I could do almost nothing about testing and creating a game. Your work is amazing. Thank you for sharing it!

So, my question is about the Collision System. I'm starting to handle the events of the physics system. It's simple, but not for me: how to handle collision events? I need a piece of code.
My programming is a lot still based on tutorials and examples.
As you can see in my old topic: <viewtopic.php?t=1741>, I had many lag issues. I found it was because I was writing codes with memory leaks and loopings with always creating new objects. I'm pretty better on handling that now and searching for mistakes, but I still am not an expert on that.
I'm going to explain my ideas and my work state until now, in a shortened text, 'cause I really need suggestions. If you can give me, I'd really appreciate, as you are experienced on all this "coding world".

Going for the explanation, it's quite simple (but it's the only simple thing close to all that it's needed to be done): I really loved "Minecraft" and I'd like to make a game like it, free to build and destroy everything, but with good graphics. It's like that other game, "7 Days to Die", I guess, but I want more story and interaction, and more NPCs, like "Ragnarök Online", with even the "homunculi system" from that (sort of pets/assistants with an AI that protect and follow the player). It'll take a long time and many mistakes and tries, but I'm willing to wait and work all that I need and I may take all my life to build it, but I'll do.
All I got until now: I created the new project with some classes in which I can load a model and create bounding boxes and oriented bounding boxes which can rotate, from a Microsoft example. And the project has your physics system implemented. The class still has BEPU boxes for each mesh the model has, calculating its max and min vertices.
And as I need millions of boxes, I don't have resources to keep everything active all the time. So what I'm doing now is (or what I'm trying to do now): I deactivate and remove boxes from the Space when they are not needed (no dynamic boxes near, or when there's no movement/velocity) and I activate and add boxes to the Space when needed (when they are moving or near another box, or another box is coming to collide with it).
The problem is: I can't use the handling event systems yet, I never used it until now. The only thing I know how to do is write "BEPUbox.CollisionInformation.Events.DetectingInitialCollision +=", but I don't know what to write next. Would you help me?

After that, I'm going for programming a sky box, as I need to try new things on the project.
Thanks, again, Norbo, you are unique.
