]>
git.r.bdr.sh - rbdr/lissajous/blob - lib/factories/global.js
bf0360df980e7e604f3b3936f723290f63c6edfc
1 import { Entity
} from '@serpentity/serpentity';
2 import Position
from '@serpentity/components.position';
3 import EulerAngle
from '@serpentity/components.euler_angle';
4 import Velocity
from '@serpentity/components.velocity';
5 import Radius
from '../components/radius';
6 import Up
from '../components/up';
7 import Configuration
from '../components/configuration';
9 export function configuration() {
11 const entity
= new Entity();
12 entity
.addComponent(new Configuration());
17 export function camera() {
19 const entity
= new Entity();
20 entity
.addComponent(new Position());
21 entity
.addComponent(new EulerAngle());
22 entity
.addComponent(new Velocity({
27 entity
.addComponent(new Radius({
30 entity
.addComponent(new Up());