You can support the development on the Github Sponsors page.


Tech > WAVE FUNCTIONS


move an object with one line of code with these 11 wave functions
made by vand
uploaded by Vand
added:
updated:
download cartridge
- CLICK TO PLAY -

3


If you haven't seen nothing about "using sine waves to move an object", check out this video:
https://youtu.be/m463X1cqV6s

Basically when defining the position of an object (x,y), you can add motion to it using sin(), cos() and tan() waves
Not just positioning but it also works on sizes, colors, selections and everything based on numbers!

If you want to add some of the motions of the cart to >>any<< engine, you just have to draw/print/place it on your x,y position and add the x,y components shown changing the "rate" and "amplitude" to one of your choice

**rate and amplitude changes over engines

For more interesting stuff, check out
https://linearharu.itch.io/

Comments


JoaoPauloVF

I liked it. It gave me some ideas about how using trigonometry functions.

zeno4ever

Nice way to illustrate this basic functions/ways to animate


Post comment