Falling though a terrain mesh

Blitz3D Forums/Blitz3D Programming/Falling though a terrain mesh

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Print (a+b);no imprecision
Print (1.0+a);floating point imprecision


That is exactly the point about the very large terrain. Your current position has a certain x value and you take step. The new x is x+xStep. The size of xStep would usually be roughly constant. But on your huge terrain x could be 1 or 100000.

Assuming xStep is rather small the expression 1+xStep is done very accurately but 100000+xStep is not.