@nw01/rayneo-6dof
v0.0.26
Published
Provides access to 6DoF tracking capabilities
Downloads
72
Readme
@nw01/rayneo-6dof
Provides access to 6DoF tracking capabilities
Install
npm install @nw01/rayneo-6dof
npx cap syncAPI
startTracking()
startTracking() => Promise<void>stopTracking()
stopTracking() => Promise<void>resetPosition()
resetPosition() => Promise<void>addListener('sixDofUpdate', ...)
addListener(eventName: 'sixDofUpdate', listenerFunc: (data: SixDofData) => void) => Promise<{ remove: () => void; }>| Param | Type |
| ------------------ | -------------------------------------------------------------------- |
| eventName | 'sixDofUpdate' |
| listenerFunc | (data: SixDofData) => void |
Returns: Promise<{ remove: () => void; }>
Interfaces
SixDofData
| Prop | Type |
| ------------- | ------------------- |
| azimuth | number |
| pitch | number |
| roll | number |
| x | number |
| y | number |
| z | number |
