Jump to content

Movement by curve (sin, coz, bezier)


Recommended Posts

Hey all! 


Looking for a nice way to do movement of some animated sprites I have moving left to right so they look more like flying birds. 


Currently they just float left to right like this,       

bird.body.velocity.x = 100;

Obviously thats too simplistic of a model of motion. It'd be cool to define a cos curve with amplitude and period to make them more like they're bobbing up and down. Thoughts?



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...