原文地址:Minecraft in WebVR with HTML Using A-Frame 原文作者:Kevin Ngo 译者:Felix 校对:阿希 我是 Kevin Ngo,一名就职于 Mozilla VR 团队的 web 虚拟现实开发者,也是 A-Frame 的核心开发人员.今天,我们来看看如何使用 A-Frame 构建一个够在 HTC Vive.Oculus Rift.Samsung GearVR.Google Cardboard.桌面设备以及移动设备上运行的.支持空间追踪(room
var width = this.$refs.topInfo.offsetWidth; var height = this.$refs.topInfo.offsetHeight; var img_w = 77; var img_h = 80; var radius = 30; //console.log(width,height) var svg = d3.select("#forceDirected") .append("svg") .attr("wid