vrml 里如何获取正在运动物体的位置?比如物体在平移或绕一个轴旋转.
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:数学作业 时间:2024/06/25 09:11:20
vrml 里如何获取正在运动物体的位置?比如物体在平移或绕一个轴旋转.
![vrml 里如何获取正在运动物体的位置?比如物体在平移或绕一个轴旋转.](/uploads/image/z/11335692-12-2.jpg?t=vrml+%E9%87%8C%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E6%AD%A3%E5%9C%A8%E8%BF%90%E5%8A%A8%E7%89%A9%E4%BD%93%E7%9A%84%E4%BD%8D%E7%BD%AE%3F%E6%AF%94%E5%A6%82%E7%89%A9%E4%BD%93%E5%9C%A8%E5%B9%B3%E7%A7%BB%E6%88%96%E7%BB%95%E4%B8%80%E4%B8%AA%E8%BD%B4%E6%97%8B%E8%BD%AC.)
HTML>
function start() {
timerID1 = setTimeout("disp1()",100);
}
function disp1() {
ux=Cortona1.Engine.Nodes('PS').Fields('position_changed').x;
uy=Cortona1.Engine.Nodes('PS').Fields('position_changed').y;
uz=Cortona1.Engine.Nodes('PS').Fields('position_changed').z;
image2.style.left=10 * ux + 360;
image2.style.top =10 * uz + 160;
document.F1.T1.value = Math.round(100*ux);
document.F1.T2.value = Math.round(100*uy);
document.F1.T3.value = Math.round(100*uz);
timerID2 = setTimeout("disp1()",200);
}
SAMPLE12:
![](http://img.wesiedu.com/upload/5/cb/5cb13c4e871c66c19e257a9f0a261a0c.gif)
I am Here
function start() {
timerID1 = setTimeout("disp1()",100);
}
function disp1() {
ux=Cortona1.Engine.Nodes('PS').Fields('position_changed').x;
uy=Cortona1.Engine.Nodes('PS').Fields('position_changed').y;
uz=Cortona1.Engine.Nodes('PS').Fields('position_changed').z;
image2.style.left=10 * ux + 360;
image2.style.top =10 * uz + 160;
document.F1.T1.value = Math.round(100*ux);
document.F1.T2.value = Math.round(100*uy);
document.F1.T3.value = Math.round(100*uz);
timerID2 = setTimeout("disp1()",200);
}
SAMPLE12:
![](http://img.wesiedu.com/upload/5/cb/5cb13c4e871c66c19e257a9f0a261a0c.gif)
I am Here