|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.
|02 February 2013||#4|
Join Date: Sep 2003
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|