用户:
两个小八路查看:277 回复:8 评论:19 创建时间:2020-05-12T09:14:31
注意是用代码做!!!!!!!!!
datacatworld.querySelectorAll('.e').forEach((e)=>{
e.onEntityContact(({other})=>{
other.velocity.y+=2.8;
e.say('weee~')
})
})点赞0
评论
请问,五彩城的彩蛋,我找到了,奖励呢
哦哦
网址
治愈绾兮world.querySelectorAll('.蹦床').forEach((e) => {//选中标签为‘打飞’的模型
e.onEntityContact(({ entity, other }) => {//设置目标模型的碰撞事件.
if (!other.isPlayer) { return } //防止非玩家实体参与检测.(这三句话是不是似曾相识啊(*^▽^*))
other.velocity.y += 5;//然后将玩家以正Y轴甩飞出去
})//万能框架
})//万能框架点赞1
评论