Simple utility to position entity with spherical coordinate system.
npm install aframe-position-spherical-component
require('aframe');
require('aframe-position-spherical-component');
<a-box position-shperical="12 90 45"></a-box>
var box = document.querySelector('a-box');
box.setAttribute('position-spherical', { radius: 12, phi: 90, theta: 45 });
Type | Description |
---|---|
string | String in format: ${radius} ${phi} ${theta} . |
custom | Object with coordinates properties:
|