- xr-frame点击gltf模型求相交,相交位置不准确,怎么处理?
xr-frame点击gltf模型,计算出的相交位置不准确是怎么回事? const raycastHit = new xrFrameSystem.RaycastHit(scene) const desc: RaycastDesc = { origin: xrFrameSystem.Vector3.createFromArray(value.origin), unitDir: xrFrameSystem.Vector3.createFromArray(value.dir), distance: 10000, hit: raycastHit } if (scene.physics.raycast(desc)) { wx.showToast({title: '---相交了--', icon: 'none'}) if (desc.hit) { const points = desc.hit.point.toArray() const shadow = scene.getElementById("shadow") const mesh = scene.createElement(xrFrameSystem.XRMesh) mesh.setAttribute("geometry", "cube") mesh.setAttribute("node-id", "dynamicCube") mesh.setAttribute("scale", "0.2 0.2 0.2") mesh.setAttribute("position", points.join(" ")) mesh.setAttribute("states", "alphaMode: BLEND") mesh.setAttribute("uniforms", "u_baseColorFactor: 1 0 0 1") shadow.addChild(mesh) } }
06-27 - 主体信息修改,现在需要重新修改名称,已经修改过两次还可以修改吗?
【公众号】: 图云慧空间信息技术 【浏览器UA】: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 【页面链接】: https://mp.weixin.qq.com/cgi-bin/settingpage?t=setting/index&action=index&token=1899958242&lang=zh_CN 【问题描述】: 请描述问题发生时的操作步骤,并最好能附出现问题的截图
2022-04-13