Log In  

Cart #12769 | 2015-08-18 | Code ▽ | Embed ▽ | No License
1

I seem to run up against the limits of mathematical precision. :|

P#12770 2015-08-18 16:31 ( Edited 2015-08-19 06:10)

My god, they've gone plaid!

What's the precision issue you're running into, exactly? There's a couple common gotchas with PICO 8's fixed-point numbers.

P#12771 2015-08-18 17:04 ( Edited 2015-08-18 21:04)

I'm making the camera drift randomly. The numbers are pretty small -- when I change the angle by plus or minus 0.0001, and then damp that movement by multiplying with 0.99, it doesn't do what I expect it to do.

So that's why the camera movement only goes in one direction: the angles never become smaller.

P#12790 2015-08-19 02:10 ( Edited 2015-08-19 16:42)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 00:13:19 | 0.009s | Q:13