猫史档案馆


电梯的代码

用户:幻影游船幻影游船查看:0 回复:0 评论:0 创建时间:2023-10-21T14:03:36


const elevator = world.querySelector('#电梯名字')  elevator.fixed = true elevator.collides = true const startPos = [x坐标, y坐标, z坐标] const endPos = [x坐标, y坐标, z坐标]

 

const ani = elevator.animate([     { position: startPos, duration: 3 },     { position: startPos, duration: 2 },     { position: endPos, duration: 3 },     { position: endPos, duration: 2 }, ], {     duration: 15 * 20,      iterations: Infinity,     direction: Box3AnimationDirection.WRAP, })


回复

上一页1 页 / 共 0下一页