What are the design principles of nodes? Can anyone point me to an article that describes design mistakes where some code should not be interacting with other code?
For example, in my game I've got a Terrain node and its sibling is an Avatar node. The avatar's child is a camera. But I also want to send camera information to the Terrain node. This feels a little weird to me, since it would be nice if each node were totally modular, but I can't think of another way to do it...
I just wonder if there is a nice article on game design principles of encapsulation