Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/physics/jolt/front/body/system.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ class BodyComponentSystem extends ShapeComponentSystem {
constructor(app, manager) {
super(app, manager);

this.schema = [...this._schema, ...schema];
}

get id() {
return 'body';
this.id = 'body';
this._schema = [...super.schema, ...schema];
}

get ComponentType() {
Expand Down
7 changes: 2 additions & 5 deletions src/physics/jolt/front/char/system.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,12 @@ class CharComponentSystem extends ShapeComponentSystem {
constructor(app, manager) {
super(app, manager);

this._schema = [...this._schema, ...schema];
this.id = 'char';
this._schema = [...super.schema, ...schema];

this._exposeConstants();
}

get id() {
return 'char';
}

get ComponentType() {
return CharComponent;
}
Expand Down
7 changes: 2 additions & 5 deletions src/physics/jolt/front/constraint/system.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ class ConstraintComponentSystem extends JoltComponentSystem {
constructor(app, manager) {
super(app, manager);

this._schema = [...this._schema, ...schema];
}

get id() {
return 'constraint';
this.id = 'constraint';
this._schema = [...super.schema, ...schema];
}

get ComponentType() {
Expand Down
7 changes: 2 additions & 5 deletions src/physics/jolt/front/shape/system.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,14 @@ class ShapeComponentSystem extends JoltComponentSystem {
constructor(app, manager) {
super(app, manager);

this._schema = [...this.schema, ...schema];
this.id = 'shape';
this._schema = [...super.schema, ...schema];

// TODO
// can we use static method directly?
this.entityMap = ShapeComponentSystem.entityMap;
}

get id() {
return 'shape';
}

get ComponentType() {
return ShapeComponent;
}
Expand Down
7 changes: 2 additions & 5 deletions src/physics/jolt/front/softbody/system.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ class SoftBodyComponentSystem extends BodyComponentSystem {
constructor(app, manager) {
super(app, manager);

this._schema = [...this._schema, ...schema];
}

get id() {
return 'softbody';
this.id = 'softbody';
this._schema = [...super.schema, ...schema];
}

get ComponentType() {
Expand Down