Node System

From Moviesandbox

Jump to: navigation, search

Here's a brief description on how the node system works.

Nodes are visual representations of instructions that are executed sequentially (or depending on the connections of the Nodes amongst each other) when the scene is running. They all start with a Root, either a CharacterRoot which is connected to a character, a ScriptRoot Every Node can be connected through the NodeIn and NodeOut buttons to another node - this creates so called Node Trees. The Controller has a list of every node in the scene. Every RootNode is the beginning of a Node Tree. The Controller will call the execute() function of the current Node in every tree.

[edit] Code Calling Order

When connecting, the nodes built a linked list that we travel down when the scene is running. We connect the nextNode variable by connecting with the NodeIn and NodeOut Buttons.

Nodes that qualify as Root are: RootNode and KeyInputNode

Once the node is finished executing, it calls the static function Node::nextNode(), that will switch to the next node in this tree.

Personal tools
Moviesandbox for UT2004