Class Node

java.lang.Object
com.marginallyclever.ro3.node.Node
Direct Known Subclasses:
Behavior, BehaviorTreeRunner, Brain, Crab, DHParameter, Environment, HingeJoint, LegLimbic, LimbPlanner, LimbSolver, LinearJoint, MarlinRobot, Material, Motor, NetworkSession, Neuron, Pose, RandomHemisphereTest, Synapse

public class Node extends Object

Node is the base class for all nodes in the scene tree.

Each Node can have a parent and multiple children, forming a tree-like structure. This class provides several functionalities:

  • Nodes have a unique IDs and a name.
  • Nodes can be attached or detached from their parents.
  • Nodes can be renamed.
  • Nodes can be serialized to and from JSON format.
  • Nodes can be updated every frame, which is useful for animations or game logic.
  • Nodes can be searched by their name or type.
  • Nodes can be found by their absolute path in the tree.
  • Nodes can be checked if their name is used by a sibling.
  • Nodes can be found by their unique ID.
  • Nodes can be found by their path, which can be relative or absolute.

This class also provides several events:

Nodes can be serialized to and from JSON.