猫史档案馆


大佬们谁教我怎么做蹦蹦床

用户:两个小八路两个小八路查看:19 回复:8 评论:19 创建时间:2020-05-12T09:14:31


注意是用代码做!!!!!!!!!


回复

上一页1 页 / 共 1下一页
ZMT_月初丶ZXHYZMT_月初丶ZXHY

喵块(滑稽)

点赞0


评论


datacatdatacat

 

velocity.y+=

点赞0


评论


阿浊ah阿浊ah

我能用源码编辑

点赞0


评论


datacatdatacat

world.querySelectorAll('.e').forEach((e)=>{
    e.onEntityContact(({other})=>{
        other.velocity.y+=2.8;
        e.say('weee~')
    })
})

点赞0


评论


神龙_build神龙_build

wow

点赞0


评论


凌_墨水凌_墨水

哎呀这简单,反正有人给你了

点赞0


评论


Ken李Ken李

0

点赞0


评论


治愈绾兮治愈绾兮

world.querySelectorAll('.蹦床').forEach((e) => {//选中标签为‘打飞’的模型
    e.onEntityContact(({ entity, other }) => {//设置目标模型的碰撞事件.
        if (!other.isPlayer) { return } //防止非玩家实体参与检测.(这三句话是不是似曾相识啊(*^▽^*))
        other.velocity.y += 5;//然后将玩家以正Y轴甩飞出去
    })//万能框架
})//万能框架

点赞1


评论