View on GitHub

ezEngine Documentation

The documentation for ezEngine

Logic and Math Nodes

The animation controller provides a couple of nodes to evaluate basic arithmatic and logic. This is meant for very simple use cases and for quick prototyping. Often animation logic requires much more complex rules than what would be feasible to express in the animation controller graph. Instead use custom code to decide which animation should run under which circumstances, and pass the result to the animation controller via a blackboard. The animation controller can then simply read the state for each animation using the blackboard nodes.

Logic AND Node

This node sets its output pin to triggered when all incoming connections on the input pin are triggered at the same time. Note that even though there is only a single input pin, it can be connected to multiple sources.

Properties

Logic OR Node

This node sets its output pin to triggered when any incoming connections on the input pin are triggered. Note that even though there is only a single input pin, it can be connected to multiple sources.

Properties

Logic NOT Node

This node sets its output pin to triggered when the input pin is not triggered and vice versa.

As with the other nodes, you can connect multiple sources to this input pin. In this case, if any of those connections is triggered, the entire input pin is considered to be in the triggered state, and the output will be the opposite.

Compare Value Node

This node can be used to check whether a number value compares in a certain way against a reference value. For example whether some input value is larger than 0.5. If this is the case, the output pin will be triggered.

Properties

Input Pins

Output Pins

Math Expression Node

The math expression node takes up to four different numbers as its input, plugs them into a user provided expression and outputs the result.

The expression must be syntactically correct, otherwise the node prints an error to the log.

Properties

Expression: The expression can use the following:

Examples:

Input Pins

Output Pins

See Also