absolute value of a transform

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Swordslayer's picture

What's unacceptable about

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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.