tag:blogger.com,1999:blog-4657142000183363795.post4999819828588113836..comments2018-12-26T19:39:47.895-08:00Comments on Base Metal Games: InterpolationAnonymoushttp://www.blogger.com/profile/04441790807840642185noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4657142000183363795.post-30563906790764830592015-02-04T21:46:58.010-08:002015-02-04T21:46:58.010-08:00You forgot to mention my personal favorite!
p(t) ...You forgot to mention my personal favorite!<br /><br />p(t) = r * ( pd - p(t-1) )<br /><br />where:<br />- r is a constant in the ]0,1] range<br />- pd is the desired destination of the value<br /><br />I really like it because:<br />1. It handles preemption of the destination naturally, which is great in applications like head tracking<br />2. It requires no transient data. Notice the absence of p0,<br /><br />Point 2 is particularly great because it makes implementations super clean and robust naturally.<br />François Chabothttps://www.blogger.com/profile/07594752033019284032noreply@blogger.com