XML Feeds

.

[jitter] Re: Re: smoothing changing values - inertia - slide - acceleration

Seejay James cjlacke at ilstu.edu
Tue Jul 10 15:34:25 MDT 2007


You said the time between the inputs is unknown. However, once some object is clicked, you know how far it is distance-wise and you've probably got an idea how long the motion should take (which could be settable too). 

I'd scale the distance value to something like 0-255 and use a lookup table for your scaling-per-datapoint function (how far it moves per time-step). Then you can tweak / draw the table just how you want it, or have multiple tables (like: further objects could behave differently, etc.) The cool functions talked about here can be used to fill the tables ... then you get to see what they look like graphically, too.

--CJ



More information about the jitter mailing list