
Lv.1
!!!!!
在 【求助】在线等,急T-T 中回复
吉吉喵不是发过吗?
for (const e of world.querySelectorAll('*')) {
e.collides = true //实体可以被碰撞
e.fixed = true //实体固定位置
e.onEntityContact(({ other }) => {
if (other.isPlayer) { // 如果跟当前实体碰撞的是玩家实体
e.destroy() //当前实体消失
other.player.invisible = true // 玩家皮肤隐藏
other.mesh = e.mesh // 玩家的外形换成当前实体的外形
other.meshScale.copy(e.meshScale) // 玩家外形的缩放比例设成跟当前实体一样
other.player.scale = e.meshScale.scale(e.bounds.y / other.bounds.y) //喵家的隐形碰撞盒缩放到模型刚好贴地
}
})
}2022-02-16T19:26:40 点赞:0
在 怎么在碰到一个模型之后就开始飞行(代码,一起跑酷那种) 中回复
你去https://shequ.codemao.cn/community/425327
2022-02-19T18:01:34 点赞:0