decorative banner

Using functions with vectors (PB only)


    Functions that obtain values from properties with two or more dimensions obtain those values in a vector. Motion Math automatically creates a vector with the appropriate number of dimensions for any property with more than one dimension. In the following example, the value () function obtains a position vector for the layer named box1 and assigns it to the variable P1, which contains two values:

    P1 = value (box1, position);