Re: Programming question

From: Jess Askey <jess_at_magenta.com>
Date: Wed Oct 27 1999 - 18:38:07 EDT

A good way that I have seen would be to take the distance and right shift it down twice or
whatever it needs to be scaled down to a value of 0-F Then make a lookup table that is
0x10 bytes long. In your table you can make the gravity linear, log or whatever you
want....

linear.. 00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
log.(approx) 00 04 08 10 18 20 2C 40 58 74 94 B0 D0 E8 FF FF

lookup tables are much easier/quicker. With 16 levels of gravity on a radius from the
center, it shouldn't really be noticeable.
Received on Wed Oct 27 17:40:10 1999

This archive was generated by hypermail 2.1.8 : Fri Aug 01 2003 - 00:32:47 EDT