Blockland Forums > Modification Help
How to make the "back position" greater
Pages: (1/1)
MARBLE MAN:
Here is Z0W0's Get back position.
--- Code: ---//Thanks Zack0Wack0 for this
function getObjectBackPosition(%obj) {
%pi = 3.14159;
%box = %obj.getWorldBox();
%max = getWords(%box, 3, 6);
%min = getWords(%box, 0, 2);
%size = vectorSub(%max, %min);
%sizeX = getWord(%size, 0);
%sizeY = getWord(%size, 1);
%sizeZ = getWord(%size, 2);
%forward = %obj.getForwardVector();
%scaleX = getWord(%forward, 0) * 0.5;
%scaleY = getWord(%forward, 1) * 0.5;
%scaleZ = getWord(%forward, 2) * 0.5;
return vectorSub(getWords(%obj.getTransform(), 0, 2), %sizeX * %scaleX SPC %sizeY * %scaleY SPC %sizeZ * %scaleZ);
}
--- End code ---
How do i make the back position greater?
Treynolds416:
It's obvious what you are trying to use these things for. You should be able to figure it out for yourself, if all you are going to do is copy a remake.
Brian Smithers:
oh and incase you didn't see the PM i sent you
What the actual forget are you trying to do to my loving mod?
MARBLE MAN:
--- Quote from: Brian Smithers on May 23, 2012, 06:37:28 PM ---oh and incase you didn't see the PM i sent you
What the actual forget are you trying to do to my loving mod?
--- End quote ---
More tron vehicles?
Pages: (1/1)