4.0.3 • Published 4 years ago

complex-threejs v4.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

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

import { THREESystem, THREEComponent } from 'complex-threejs';

...

// Simple three.js setups
this.camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
this.camera.position.z = 5;

// Register all required systems and managers and so on
this.world.addVoidSystem(new THREESystem(this.camera));

// Create components
const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshBasicMaterial({ color: 0x00ff00 });
const cube = new THREE.Mesh(geometry, material);

this.world.createEntity([
    new THREEComponent(cube)
]);
4.0.3

4 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.1.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago