Skip to content

Commit

Permalink
Update Object3.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
HypnosNova authored Feb 18, 2024
1 parent d2ce6ca commit bf88b71
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/entities/Object3.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Matrix4, Vector3Like, Vector3 } from "@valeera/mathx";
import { Entity, IEntity } from "@valeera/x";
import { Entity } from "@valeera/x";
import { Anchor3 } from "../components";
import { MODEL_3D, WORLD_MATRIX4 } from "../components/constants";
import EuclidPosition3 from "../components/matrix4/EuclidPosition3";
import EulerRotation3 from "../components/matrix4/EulerRotation3";
import Matrix4Component, { updateModelMatrixComponent } from "../components/matrix4/Matrix4Component";
import Vector3Scale3 from "../components/matrix4/Vector3Scale3";

export interface IObject3 extends IEntity {
export interface IObject3 extends Entity {
anchor: Matrix4Component;
position: Matrix4Component;
rotation: Matrix4Component;
Expand All @@ -31,14 +31,14 @@ export class Object3 extends Entity implements IObject3 {
this.position = new EuclidPosition3();
this.rotation = new EulerRotation3();
this.anchor = new Anchor3();
this.modelMatrix = new Matrix4Component(MODEL_3D, Matrix4.create(), [{
this.modelMatrix = new Matrix4Component(Matrix4.create(), [{
label: MODEL_3D,
unique: true
}]);
this.worldMatrix = new Matrix4Component(WORLD_MATRIX4, Matrix4.create(), [{
}], MODEL_3D);
this.worldMatrix = new Matrix4Component(Matrix4.create(), [{
label: WORLD_MATRIX4,
unique: true
}]);
}], WORLD_MATRIX4);
}

localToWorld(vec: Vector3Like) {
Expand Down

0 comments on commit bf88b71

Please sign in to comment.