/ Published in: ActionScript 3
Simple swing animation logic
Expand |
Embed | Plain Text
var force = 20; var t = 0; function swing() { t += 0.3; this._rotation = Math.cos(t) * force; }
You need to login to post a comment.
Simple swing animation logic
var force = 20; var t = 0; function swing() { t += 0.3; this._rotation = Math.cos(t) * force; }
You need to login to post a comment.