%this.setTransform(getWord(%this.getPosition(),0) SPC getWord(%this.getPosition(),1) SPC getWord(%this.getPosition(),2) SPC "0 0 -1 90.0002");
What the hell are you doing.
%this.setTransform(%this.getPosition() SPC "0 0 -1 90");
Btw I'm pretty sure the last part of the rotation is supposed to be in radians so that would be
%this.setTransform(%this.getPosition() SPC "0 0 -1 1.5707963");
And the 0 0 1 180 would be 0 0 1 3.14159265
When getting a rotation with obj.rotation, the last part will be in degrees, when using settransform/gettransform the last part will be in radians. Don't ask why.