I want a custom action to integrate two vectors. I came up with this:
I looked it up and they say that this is the result of me trying to return a variable of the wrong type...but all my variables and parameters and return variables are real.
-
Integrate
-

Options: Action, Create Thread
-

Return Type: Real
-

Parameters
-


VectorA Magnitude = 0.0 <Real>
-


VectorB Magnitude = 0.0 <Real>
-


VectorA Angle = 0.0 <Real>
-


VectorB Angle = 0.0 <Real>
-
-

Grammar Text: Integrate(VectorA Magnitude, VectorB Magnitude, VectorA Angle, VectorB Angle)
-

Hint Text: (None)
-

Custom Script Code
-


Ax = 0.0 <Real>
-


Ay = 0.0 <Real>
-


Bx = 0.0 <Real>
-


By = 0.0 <Real>
-


tempReal = 0.0 <Real>
-
-

Actions
-


Variable - Set Ax = (VectorA Magnitude * (Cos(VectorA Angle)))
-


Variable - Set Ay = (VectorA Magnitude * (Sin(VectorA Angle)))
-


Variable - Set Bx = (VectorB Magnitude * (Cos(VectorB Angle)))
-


Variable - Set By = (VectorB Magnitude * (Sin(VectorB Angle)))
-


Variable - Set Ax = (Ax + Bx)
-


Variable - Set Ay = (Ay + By)
-


Variable - Set tempReal = (Square root(((Ax * Ax) + (Ay * Ay))))
-


General - Return tempReal
-
-
I looked it up and they say that this is the result of me trying to return a variable of the wrong type...but all my variables and parameters and return variables are real.



