用户:
WMoSo岛同号查看:134 回复:2 评论:6 创建时间:2021-08-20T19:30:04
大佬们,求助!请问,这个效果咋做?

Forzen_Seven//首先给模型加上标签:bcm
c喵t Quat = Box3Quaternion(0,0,0,1);
world.querySelectorAll('.bcm').forEach((e)=>{
e.enableInteract = true;
e.interactRadius = 3;
e.interactHint = '编程猫';
e.onInteract(({entity})=>{
c喵t direction = e.position.sub(entity.position);
e.meshOrientation = Quat.rotateY(Math.atan2(direction.z,direction.x));
})
})点赞0
评论
那个.bcm干啥用的?
搜索器
模型标签
搜索器是啥?
这不对劲呀,为啥不是#编程猫?
我不习惯那么写,你那样写兼容性差