Original Post
Hi, I'm currently writing a physics manager to manage all objects' collisions in a scene. The manager is a singleton, and I have been trying to think of a good way to add objects to the list. Ideally each object would be able to add itself to the manager in it's constructor, but i can't see a way of doing this since, unfortunatley, you can't pass the 'this' keyword as a parameter :/ anyone have any tips (or experiences) on how to fix this? maybe i'm just oblivious to it, but no sollutions are jumping off the screen at me. obviously i could have theManager::AddObject(theObject* someObject) but I wanted the objects to be somewhat self managing.