用户:
屑羽yee查看:4 回复:19 评论:4 创建时间:2023-04-08T19:11:30
yeeeeeeeeee()
众所周知很多跑酷都有移动模型()
不说了()先上代码yeeeeeeeeee()
//ani
async function ani(idname, ix, iy, iz, id) {
world.querySelectorAll('*').forEach(async (e) => {
if (e.id == (idname)) {
let x = ix; let y = iy; let z = iz; let d = id;
x /= d; y /= d; z /= d; d *= 9;
e.animate([
{ velocity: [-x, -y, -z].map(e => e), easeIn: Box3Easing.LINEAR, easeOut: Box3Easing.LINEAR, },
{ velocity: [x, y, z].map(e => e), easeIn: Box3Easing.LINEAR, easeOut: Box3Easing.LINEAR, },
], {
duration: d,
iterations: Infinity,// 播放无限遍~()
direction: Box3AnimationDirection.WRAP_REVERSE,
iterationStart: 0,
});
};
});
};
// 好了问题来了()改怎么用能()
// 例子:
ani('模型名'/*记得把模型先放出来()*/, 0/*x坐标*/, 1/*坐标y(高度)*/, 0/*坐标z*/, 2/*坐标y(高度)*/);
//这里自己慢慢调~()羽烊这里用的是上下移动~()
原告:鸭子![]()
被告:羽烊![]()
好吧()代码逝鸭子写的()我白嫖完了()
ohh
yeeeeeeeeee
ohh
yeeeeeeeeee
ohh
yeeeeeeeeee
ohh
yeeeeeeeeee
![]()
![]()
![]()
下期见()