make sure to filter your float values before using them or saving them !


Tweet
RemiD

i had some weird behaviors / errors with collision detection using linepick and pickable meshes (Blitz3d), and i did not understand why...

well the reason is the same that i have encountered in the past (october 2019).

in Blitz3d, sometimes a float value is given in a weird format, like '1.0e-004' or '3.20119e-005' or '-2.30033e-006', etc... this is the case for normals...
and this may produce errors in your code if you use / save these float values with this format.

the solution to prevent that is to filter your float values before using them or saving them :
https://www.blitzcoder.org/forum/topic.php?id=378

Reply To Topic (minimum 10 characters)

Please log in to reply