Posted By

burakkirkil on 07/29/12


Tagged


Versions (?)

Animation - Swing


 / Published in: ActionScript 3
 

Simple swing animation logic

  1. var force = 20;
  2. var t = 0;
  3.  
  4. function swing()
  5. {
  6. t += 0.3;
  7. this._rotation = Math.cos(t) * force;
  8. }

Report this snippet  

You need to login to post a comment.