Math Operator can perform basic math on two values, like adding or multiplying. You can also round one value, get a square root, and more.
| Execute | Executes the node | |
| On Start | Executes the node at the start of the game | |
| Enabled | Enables or disables the node. Disabled nodes can't be executed. | |
| Round the Result | Rounds the result based in the Rounding Base (calculated before Clamp or Wrap to Range) | |
| Value A / B | Value for the math operation | |
| Operator | The math operation used when executed | |
| Output Type | Normal | Doesn't change final result |
| Clamp to Range | Limits final result by a minimum and maximum value | |
| Wrap to Range | Loops the final result around Min and Max (e.g., if Min is 0 and Max is 1, a 1.2 result would become 0.2) | |
| Min / Max | Determines the limits of Clamp to Range and Wrap to Range | |
| Rounding Base | Base for the Round the Result parameter. Use 1 for integers, 2 for even numbers, and so on | |
| Value Output | Sends the result of the math operation |
Here's a link to a demo that shows how to use the Math Operator node: