用户:鸭子们查看:1 回复:10 评论:1 创建时间:2020-06-02T16:09:50
迷失冷光林思琪贵
world.querySelectorAll('.车').forEach((e)=>{
e.onEntityContact(({entity,other})=>{
if(!other.isPlayer){return}
other.mesh=entity.mesh;
other.player.invisible = true;
other.meshOrientation = new Box3Quaternion(0, 1, 0, 0);
other.player.runSpeed = 0.75;
other.player.walkSpeed = 0.75;
other.player.scale =0.2;
other.player.jumpPower = 0;
other.player.canFly = ture;
world.querySelectorAll("player")[0].position.set(123,2,122);
other.player.cameraMode='fps'
console.log('setting camera mode:',entity.player.cameraMode);
});
});点赞0
评论