Original Post
I have a small''ish problem. I have two objects, one stationary with X,Y & Width,Height cords and one moving... I try to check to see it the bottom of the moving object, has touched the top of the non moving one...
Unfortunatly the evaluation, will not return true, even when in debug it clearly shows they are?
The 2 values are float type, and as Top = +
Bottom = -
the signes are right... Why???? and how can this be repaired????
if ( (Brix.oY-(Brix.Height/2))==((Board[cX][cY].oY)+(Board[cX][cY].Height/2)) )
{
// Do something....
}
|