Hi there,
I’m trying to create a procedure that from a few parameters can crunch some numbers and then modify/ update a position variable. which can be used throughout with different parameters.
here’s an example to give an idea of what I mean:
VAR pos Input:=[3,2,1]
VAR pos Output:=[0,0,0]
PROC main()
PosOutput input, output;
ENDPROC
PROC PosOutput(pos pos1, pos pos2)
pos2:= [pos1.x*2, pos2.y, pos2.z];
ENDPROC
When I run such a program the Output variable doesn’t seem to update. is there a way to update the Output that’s being called through the procedure?
regards,
Quin