center_y=150;
d= 500;
function drawline (x1,y1,z1,x2,y2,z2,num) {
x1=(x1/(z1+d))*d;
y1=(y1/(z1+d))*d;
x2=(x2/(z2+d))*d;
y2=(y2/(z2+d))*d;
x1 += center_x;
y1 = center_y - y1;
x2 += center_x;
y2 = center_y - y2;
dx= x2 - x1;
dy= y2 - y1;
line_length = Math.sqrt(dx*dx+dy*dy);
angle = Math.atan(dy/dx);
angle = angle*180/Math.PI;
setProperty ("line" add num, _x, x1);
setProperty ("line" add num, _y, y1);
if (dx < 0){
angle = angle-180;
}
setProperty ("line" add num, _rotation, angle);
setProperty ("line" add num, _xscale, line_length);
}
////////////////////////
px = new Array(8)
py = new Array(8)
pz = new Array(8)
px[0] = 100;
py[0] = 100;
pz[0] = 25;
px[1] = -100;
py[1] = 100;
pz[1] = 25;
px[2] = -100;
py[2] = -100;
pz[2] = 25;
px[3] = 100;
py[3] = -100;
pz[3] = 25;
px[4] = 100;
py[4] = 100;
pz[4] = -25;
px[5] = -100;
py[5] = 100;
pz[5] = -25;
px[6] = -100;
py[6] = -100;
pz[6] = -25;
px[7] = 100;
py[7] = -100;
pz[7] = -25;
相关视频
相关阅读 Windows错误代码大全 Windows错误代码查询激活windows有什么用Mac QQ和Windows QQ聊天记录怎么合并 Mac QQ和Windows QQ聊天记录Windows 10自动更新怎么关闭 如何关闭Windows 10自动更新windows 10 rs4快速预览版17017下载错误问题Win10秋季创意者更新16291更新了什么 win10 16291更新内容windows10秋季创意者更新时间 windows10秋季创意者更新内容kb3150513补丁更新了什么 Windows 10补丁kb3150513是什么
热门文章 没有查询到任何记录。
最新文章
Flash CS4基础入门
如何在Flash中打开一个定制的浏览器新窗口?学习ActionScript 3.0的6个好处几个小技巧精简Flash文件体积在Flash动画中添加“加为收藏”和“设为首页
人气排行 Flash游戏制作--小熊拼图用Flash实现几种镜头效果Flash制作动画知识:遮罩Flash如何做鼠标指针样式Flash制作环形文字Flash制作声情并茂的电子相册实例讲解flashMTV制作全过程(3)鼠标效果系列教程:游动的鱼
查看所有0条评论>>