小小菜鸟的web菜园子

web开发学习。好记性不如烂笔头。每天进步一点点!

导航

2010年11月7日 #

记录一些常用的三角公式

摘要: // substitute mouseX, mouseY with the x, y point to rotate todx = mouseX - sprite.x; dy = mouseY - sprite.y; sprite.rotation = Math.atan2(dy, dx) * 180 / M创建波形: // assign value to x, y or other proper... 阅读全文

posted @ 2010-11-07 23:44 『小小菜鸟』 阅读(636) 评论(0) 推荐(0) 编辑