ScriptSpot

Forum topic · General Scripting

absolute value of a transform

By JokerMartini · 2010-12-08

Description

say i have a transform that is [0,100,0] and i want to add that with the absolute numbers of a transform which are [0,-200,0]

which would result in [0,300,0]

i can't just put

abs obj.position

Comments (1)

Swordslayer · 2010-12-08

What's unacceptable about [abs obj.position.x,abs obj.position.y,abs obj.position.x]? If you want to do it in a loop instead just dissect the for loop I used in the Distance Align thread.