惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
B
Blog
N
Netflix TechBlog - Medium
量子位
月光博客
月光博客
博客园_首页
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
M
MIT News - Artificial intelligence
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
腾讯CDC
Engineering at Meta
Engineering at Meta
云风的 BLOG
云风的 BLOG
L
LangChain Blog
GbyAI
GbyAI
IT之家
IT之家
Y
Y Combinator Blog
人人都是产品经理
人人都是产品经理

博客园 - 『小小菜鸟』

as3连接fms2时总是连接失败的解决办法 搜狗招聘FLASH开发工程师。 欢迎大家制作搜狗输入法flash皮肤。 flash develop错误Debugger startup error: System.TypeInitializationException的解决办法 移除flash中影片剪辑获得焦点的黄框 AS3发送http请求编码不对的解决方法 [转]关于flash中图片(jpg\png\gif)旋转后锯齿(模糊)问题 - 『小小菜鸟』 - 博客园 ShareObject存储相关 IE99正式版官方下载地址 IE6中CSS常见BUG全集及解决方案 Nifty Corners Cube 实现圆角 flash判断当前使用的浏览器类型 ie屏蔽flash弹出窗口问题的解决办法 IOS开发资源 流程,养成好习惯 as调试工具-OLOG paperversion3d材质。Papervision3D Essentials学习笔记(二) 学习一下papervision3D。Papervision3D Essentials学习笔记(一) phpMyAdmin超时时间修改方法。
记录一些常用的三角公式
『小小菜鸟』 · 2010-11-07 · via 博客园 - 『小小菜鸟』
 

// substitute mouseX, mouseY with the x, y point to rotate to
dx = mouseX - sprite.x;
dy = mouseY - sprite.y;
sprite.rotation = Math.atan2(dy, dx) * 180 / M
 
创建波形:
// assign value to x, y or other property of srite or movie clip,
// use as drawing coordinates, etc.
public function onEnterFrame(event:Event){
value = center + Math.sin(angle) * range;
angle += speed;
}
 
创建圆形:
// assign position to x and y of sprite or movie clip,
// use as drawing coordinates, etc.
public function onEnterFrame(event:Event){
xposition = centerX + Math.cos(angle) * radius
yposition = centerY + Math.sin(angle) * radius
angle += speed;
}