diego1996 / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

It would be nice to detach gkLogicTree from gkGameObject #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would more flexible to detach gkLogicTree from gkGameObject.

Any number of gkGameObject should be able to interact within the gkLogicTree  
just by being connected to nodes.

No need to have gkLogicNode::getAttachedObject function since we will handle 
the related gkGameObject via input socket...

Original issue reported on code.google.com by silveira.nestor@gmail.com on 2 Mar 2010 at 3:00

GoogleCodeExporter commented 9 years ago
Sounds good, I believe the only reason it was attached to to the game object 
was to
unload/destroy the tree when the object is destroyed.
I need to fully test loading & unloading functionality, as there might be some 
issues
when individual objects are removed/unloaded from the scene (with all the new 
changes)

Maybe a scene node can help here, ex; sceneNode->getUpdate()->reload(), and the 
same
for object nodes.

Original comment by snailr...@gmail.com on 2 Mar 2010 at 3:11