Skip to content

An Animation-Interpolator, "reverse-engineered" from facebook/rebound

Notifications You must be signed in to change notification settings

osanj/spring-interpolator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring-Interpolator (Rebuilding Facebook Rebound)

SpringInterpolator is an interpolater for animations. It is "reversed-engineered" from facebook's rebound library (I did not look at their code!). The main component of this project is an ordinary differential equation of second order and a Runge-Kutta-4 solver. Details can be found in my blog article.

To use this code implement the listener interface. Also take a look at the example application.

SpringInterpolator interpolator = new SpringInterpolator();
interpolator.addListener(this); // to receive the update events
interpolator.setFinalPosition(true); // causes the system to oscillate

About

An Animation-Interpolator, "reverse-engineered" from facebook/rebound

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages