From f5e35b606f75bd165fcfdc42f6c1c1c5bb6777b4 Mon Sep 17 00:00:00 2001 From: mincomk Date: Sat, 7 Jun 2025 22:43:26 +0900 Subject: [PATCH] bug: quaternion? --- package.json | 2 +- src/quaternion.ts | 4 +++- tsconfig.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 64d02e3..2e14916 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "computercraft-mutil", - "version": "1.0.7", + "version": "1.0.8", "description": "", "license": "ISC", "author": "", diff --git a/src/quaternion.ts b/src/quaternion.ts index 12005c6..a256600 100644 --- a/src/quaternion.ts +++ b/src/quaternion.ts @@ -1,12 +1,14 @@ import { Vec3 } from "./vec"; +const math = globalThis.math; + export class Quaternion { public constructor( public x: number, public y: number, public z: number, public w: number, - ) { } + ) {} public static fromXYZ({ x, diff --git a/tsconfig.json b/tsconfig.json index 0c6d21c..62b53ec 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,8 @@ "tstl": { "luaTarget": "JIT", "buildMode": "library", - "noImplicitSelf": true + "noImplicitSelf": true, + "noImplicitGlobalVariables": true }, "include": ["src/**/*"] }