Get your Algebra hat on, Operations deal in Maths
I hope you’re ready for some more math because this lesson is all about operations and operations are all about math. Like data sources the operations hold numbers that other tools and objects can use, however most operations get that number by performing mathematical calculations.
-First we have the “distance operator.” This is the least mathematical of the operations. It simply calculates the distance between two objects. In the properties we have 3 options to check out.
-“Type” determines how the operator will calculate the distance. World uses full 3D space while plane only uses horizontal distance, height is not taken into account. The height setting however calculates only vertical distance so no matter how far you travel horizontally it only cares about when you are moving up.
And finally driving line only uses length of the driving line so no matter how much you move up or down it only cares about how far you are on the driving line.
-Select source 1 & 2 are how you choose which items it uses. So for example if you want to calculate the distance of the bike on the driving line you could set source 1 as the starting checkpoint and source 2 would be the bike or rider.
One thing to note here is that if one object is static and the other is moving it’s a good idea to select the static object as source 1. For example with height the operator takes the height of source 1 and subtracts it from the height of source 2, as a result if source two is below source 1 the value you get will be negative.
-Next we’ll look at the “2 input operator.” As the name implies this tool will use two values to calculate its own value.
-Our first property is “operation.” This is of course how the operator will calculate its value. We have many options here that range from simple addition to some more complex calculation methods, too many to describe here, check the video description for a link to more info on the various mathematical operations.
-Next of course we have our two values. Like the generic filter you will always want to have at least one of these values tied to a data source. If both values are manually set the result of the calculation will always be the same.
-That leads us to the “N-Input Operator.” This one is similar to the two input operator but can use many values to calculate its own.
-The N-Input Operator has a few less operations but most of the options are also ones that were available in the 2 Input Operator. Again check the video descriptions for links if you want a math lesson.
-Using “Select Operands” you can select all of the data sources and operations you wish to combine.
Finally we have the “One Input Operator.” This one uses only one value and some math to create a new number.
-“Operation” chooses how you will manipulate the value, again many different options some of which are above my math comprehension level so check the links for more info.
-The “operand” you are going to want to tie to a data source or another operation, just like with previous tools, if your starting value is always the same than your resulting value will always be the same as well.