The line drawn should be made of sine wave, the length is of int of half cycles (ie: 0.5, 1,1.5 ...).
The selected wave is the result of where the band is pinched, if in the middle it will be one half cycle.
The line drawn should be made of sine wave, the length is of int of half cycles (ie: 0.5, 1,1.5 ...).
The selected wave is the result of where the band is pinched, if in the middle it will be one half cycle.
Rubber band works like a string. It has a main mode of movement and also secondary (harmonics).
I'm just helping those who may take the challenge.
The amplitude is harmonic (behaves like a sine function) and decays in time.
This kind of effect is usually done with Bezier curves for the drawing and an interpolator for the animation. libGDX offers everything needed in its Math package.
This kind of effect is usually done with Bezier curves for the drawing and an interpolator for the animation. libGDX offers everything needed in its Math package.
It's something to do with libGDX. With other libraries, it's a complete waste of time. LibGDX has everything needed: elastic interpolator, Box2D for physics simulation, Bezier class...
It's something to do with libGDX. With other libraries, it's a complete waste of time. LibGDX has everything needed: elastic interpolator, Box2D for physics simulation, Bezier class...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.