|02 February 2013||#1|
not a jedi yetportfolio
Game Technical Artist
Greater Seattle, USA
Join Date: Nov 2010
Forcing almost zero values to be zero
I have an object whose local position is shown to be [0,0,0]
but when accessed by script I get [9.05991e-006,2.86102e-006,1.3262e-005]
superflous for my purposes, why not just give me zero?
does max have a method for this
or must I iterate through the X,Y,Z values testing for "almost zero"?
or better yet is there a way to get max to limit the precision somehow, so I don't get results beyond, say 4 decimal points ?
Last edited by Mambo4 : 02 February 2013 at 11:22 PM.
|Thread Closed share thread|