20.09.2017, 01:41
Quote:
I would just like to mention I noticed something off.
Код:
if(x == 0.0) x = EndX; if(y == 0.0) y = EndY; if(z == 0.0) z = EndZ; You should always use less than/greater than operators when using floats never the equal to operator. Код:
if(x > -0.0001 && x < 0.0001) x = EndX; |
Although the recommended way would be to use return value, wiki/ca_raycastline