wtv-r3-space-engine
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

R3 Space Engine Controller

This module allows access to the R3 Space Engine by implementing it's socket API in NodeJS and providing easy access to its funcionalities for nodejs developers.

The module is in typescript and is transpiled to ES6 so the --experimental-modules flag is required for proper loading of the module

  import { R3SpaceEngine } from 'wtv-r3-space-engine'
 
  async function doDemo() {
    let r3 = new R3SpaceEngine('localhost', 9001)
    r3.setDebug(true) // turn this off when done debugging
    await r3.connect()
    scene = await r3.loadScene('SampleProject', 'SampleScene')
    scene.setExport('tText', 'Hello World')  
    scene.takeOnline()
    scene.playTimeline('In')
  }
 
doDemo()
 

Package Sidebar

Install

npm i wtv-r3-space-engine

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

653 kB

Total Files

42

Last publish

Collaborators

  • alex.fraser