Controls for spherical movements by looking for A-Frame.
npm install aframe-spherical-controls-component

This component orbits an entity at a fixed point on a constant radius.
It is not a universial control, because it is mostly designed for mobile devices using the tilting of the head to control the orbital track. You can therefor not set it directly on the _camera_ entity, but it needs to be set as a rig around the camera (aka _camera rig pattern_).
It differs from the Orbit Controls component in that way that it does not substitute _look-controls_ component, but uses it rather for determing the movement direction.
For A-Frame.
The component sets the matrix of the entity directly. Use the _position_ and _rotation_ properties from the object to obtain positional and rotational data.
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| radius | The radius of the spherical movement | 1 |
| minRadius | The minimum offset from the radius for of the spherical movement | 0 |
| maxRadius | The maximum offset from the radius of the spherical movement | 0 |
| speed | Movement speed | 1 |
| lat | Sets the spherical position according to the planar latitude (between -90 and 90) coordinate in degrees | 0 |
| lng | Sets the spherical position according to the planar longitude (between -180 and 180) coordinate in degrees | 0 |
| upVector | Sets the up vector like in the lookAt function of Three.JS. Hardly ever needed to set manually | 0 1 0 |
| vrMode | Whether the controls are only enabled when in mobile VR mode | false |
| tilt | Tilt of camera in degrees | 0 |
| enabled | Whether the controls are enabled | true |
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| getLatLngAzimuth | Returns the current latitude and longitude coordinates and looking direction azimuth in degrees | {lat: 0, lng: 0, azimuth: 0}
The current implementation does not work with together with the other movement controls like _wasd-controls_ on the _camera_ entity.
#### Browser
Install and use by directly including the browser files:
``html
#### npm
Install via npm:
`bash
npm install aframe-spherical-controls-component
`Then require and use.
`js
require('aframe');
require('aframe-spherical-controls-component');
``