complex-threejs
Install
npm i complex-threejs --save
Usage
Add THREESystem
to your world instance and add the THREEComponent
to your entity
and you are good to go
; ... // Simple three.js setupsthiscamera = 75 windowinnerWidth / windowinnerHeight 01 1000;thiscamerapositionz = 5; // Register all required systems and managers and so onthisworld; // Create componentsconst geometry = 1 1 1;const material = color: 0x00ff00 ;const cube = geometry material; thisworld;