用户:
北极熊xry查看:0 回复:4 评论:0 创建时间:2022-01-27T17:37:15
做地图时,
千万不要自作主张的改代码!
我,就是应为改了一点数据:
原来代码
const pad = world.querySelector('#弹射跳板-1')
pad.onEntityContact(({ other, axis }) => {
if (axis.y === -1) {
other.velocity.y = 2
}
})
情况:

用了2秒又38
我改了一下数据
const pad = world.querySelector('#弹射跳板-1')
pad.onEntityContact(({ other, axis }) => {
if (axis.y === -1) {
other.velocity.y = 100
}
})
结果!

我,来到了外太空,下不来了!用了1分9秒又55!
!!!!!
总结:
像这样的代码,值太高了你会后悔的!