Realsee Five Plugin - MiniCompassPlugin
指南针组件
const northRad = (((orientation ? orientation : 180) + 90) / 180) * Math.PI;
modelMiniCompass?.appendTo(ref.current as HTMLElement, northRad);
指南针组件
Homepage Repository npm TypeScript Download
npm install realsee-five-plugin-minicompass@0.1.12
指南针组件
const northRad = (((orientation ? orientation : 180) + 90) / 180) * Math.PI;
modelMiniCompass?.appendTo(ref.current as HTMLElement, northRad);