Strange numbers... bug? or am I out of my mind?
by Aaron Moore · in Constructor · 06/01/2007 (10:11 am) · 4 replies
EDIT: This is constructor 1.0.2
Say I've got 4 brushes, 1 being a portal.
brush 1's size is 4 x 1 x4
brush 2 is in the middle, above the portal, and it's size is 2 x 1 x 2
The portal is in the middle, it's size is 2 x 1 x 2
brush 3 is on the opposite side and it's 4 x 1 x4
Unless my math is mistaken:
brush 1 center is -3 0 0
brush 2 center is 0 0 1
portal's center is 0 0 -1
brush 3 center is 3 0 0
But what I get is something along the lines of:
brush 1 center is -3 0 0
brush 2 center is -1.14346e-434 0 1
portal's center is 0 0 -1
brush 3 center is 3 0 0
Even if I change that weird number to 0, it goes back to what it was the second I click off of it. Even if I align it to the portal, it's still that number, and the portal's number is correct.
Say I've got 4 brushes, 1 being a portal.
brush 1's size is 4 x 1 x4
brush 2 is in the middle, above the portal, and it's size is 2 x 1 x 2
The portal is in the middle, it's size is 2 x 1 x 2
brush 3 is on the opposite side and it's 4 x 1 x4
Unless my math is mistaken:
brush 1 center is -3 0 0
brush 2 center is 0 0 1
portal's center is 0 0 -1
brush 3 center is 3 0 0
But what I get is something along the lines of:
brush 1 center is -3 0 0
brush 2 center is -1.14346e-434 0 1
portal's center is 0 0 -1
brush 3 center is 3 0 0
Even if I change that weird number to 0, it goes back to what it was the second I click off of it. Even if I align it to the portal, it's still that number, and the portal's number is correct.
#2
06/02/2007 (6:24 am)
That I understand...but why, if I change it to 0, does it change back to that number? and why is it that number in the first place?
#3
06/02/2007 (12:40 pm)
Generally that is caused by having a rotated transform on the brush which leads to floating point precision errors when the value you type is multiplied by the transform matrix.
#4
06/02/2007 (9:41 pm)
Rotated? hmm...strange. I was working with a 50x50 square building...nothing should've been rotated at all. Ah well, maybe I messed up someplace. Thanks for the explanation!
Associate Matt Fairfax
PopCap
The "e" is a shorthand scientific notation way of displaying *really* small numbers and you can treat them as 0.