Skip to content

Commit 276aaf7

Browse files
committed
adjust type
1 parent 6bedf98 commit 276aaf7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libs/cannon/src/lib/physics.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
import { injectBeforeRender, injectStore } from 'angular-three';
3232
import { injectAutoEffect } from 'ngxtension/auto-effect';
3333
import { mergeInputs } from 'ngxtension/inject-inputs';
34-
import { InstancedMesh, Matrix4, Object3D, Quaternion, Vector3 } from 'three';
34+
import { InstancedMesh, Matrix4, Object3D, Quaternion, QuaternionTuple, Vector3 } from 'three';
3535

3636
const v = new Vector3();
3737
const s = new Vector3(1, 1, 1);
@@ -46,7 +46,7 @@ function apply(
4646
object?: Object3D,
4747
) {
4848
if (index !== undefined) {
49-
m.compose(v.fromArray(positions, index * 3), q.fromArray(quaternions, index * 4), scale);
49+
m.compose(v.fromArray(positions, index * 3), q.fromArray(quaternions as QuaternionTuple, index * 4), scale);
5050
if (object) {
5151
object.matrixAutoUpdate = false;
5252
object.matrix.copy(m);
@@ -183,7 +183,6 @@ export class NgtcPhysics {
183183

184184
this.autoEffect(() => {
185185
const [worker, value] = [untracked(this.worker), computedValue()];
186-
// @ts-expect-error
187186
worker[key] = value;
188187
});
189188
}

0 commit comments

Comments
 (0)