initialise() methods
Posted: Sun Dec 14, 2008 5:31 pm
Something for after the presentation:
I think we might need an initialise() method for certain classes like Level or Scene or maybe Gametype.
The idea is from an issue with physics: I cannot add the WorldEntities directly to the Scene (and with it Bullet) because that would mean every time something vital changes about the physical body, it has to be removed and added again. Thats awfully slow.
There's also some issues with that.
--> Objects get added in the first tick. But thats bad practice.
Much better would probably be a function that gets called in the Scene AFTER the level has been loaded. I'm sure there are other areas of applications.
Never mind right now, we've got loads of important stuff to work on.
I think we might need an initialise() method for certain classes like Level or Scene or maybe Gametype.
The idea is from an issue with physics: I cannot add the WorldEntities directly to the Scene (and with it Bullet) because that would mean every time something vital changes about the physical body, it has to be removed and added again. Thats awfully slow.
There's also some issues with that.
--> Objects get added in the first tick. But thats bad practice.
Much better would probably be a function that gets called in the Scene AFTER the level has been loaded. I'm sure there are other areas of applications.
Never mind right now, we've got loads of important stuff to work on.