猫史档案馆


弹射板代码

用户:梁桂琪梁桂琪查看:0 回复:0 评论:0 创建时间:2021-12-05T14:08:38


const suai = world.querySelector("#弹射跳板")
suai.onEntityContact(({other, axis}) => {
    if (axis.y === -1){
        other.velocity.y= 2
    }
})


回复

上一页1 页 / 共 0下一页