猫史档案馆


[box3求助]

用户:SCS_user_i1eril0dUySCS_user_i1eril0dUy查看:0 回复:0 评论:0 创建时间:2023-02-18T18:01:30


为什么我的代码像这样

world.onPress(async({raycast:{direction},entity})=>{
while(entity.player.action0button){
shoot(entity,direction)
await sleep(speed[entity.hand])
}
})


//shoot函数用的是bullet(模型).velocity.copy(direction)

发射子弹时往-x的方向能正常发射但往+x的方向会射不了或者往别处射?


回复

上一页1 页 / 共 0下一页