From 568e748bcdd8e42486f9183097f4ff99078e0c3d Mon Sep 17 00:00:00 2001 From: Jakub Kasprzyk Date: Wed, 10 Jan 2024 20:01:58 +0100 Subject: [PATCH] Fix linter --- packages/client/src/utils/RaycastVehicle.ts | 2 +- packages/client/src/utils/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/client/src/utils/RaycastVehicle.ts b/packages/client/src/utils/RaycastVehicle.ts index 7e047bc..14285b2 100644 --- a/packages/client/src/utils/RaycastVehicle.ts +++ b/packages/client/src/utils/RaycastVehicle.ts @@ -267,7 +267,7 @@ class RaycastVehicle { this.nWheelsOnGround = 0; this.updateVehicleSpeed(); - this.wheels.forEach((wheel, index) => { + this.wheels.forEach((wheel) => { this.updateWheelTransform(wheel); this.updateWheelSteering(wheel); this.updateWheelRaycast(wheel); diff --git a/packages/client/src/utils/index.ts b/packages/client/src/utils/index.ts index d85a87f..2789341 100644 --- a/packages/client/src/utils/index.ts +++ b/packages/client/src/utils/index.ts @@ -158,10 +158,10 @@ const addSphere = ({ }; const addVehicle = ({ - colorName, + // colorName, scene, - shadowGenerator, -}: { +}: // shadowGenerator, +{ colorName: string; scene: Scene; shadowGenerator: ShadowGenerator; @@ -270,7 +270,7 @@ const addVehicle = ({ vehicle.wheels.forEach((wheel, index) => { if (!wheelMeshes[index]) return; - const wheelMesh = wheelMeshes[index]; + wheelMesh = wheelMeshes[index]; wheelMesh.position.copyFrom(wheel.transform.position); wheelMesh.rotationQuaternion.copyFrom(wheel.transform.rotationQuaternion); wheelMesh.rotate(Axis.Z, Math.PI / 2, Space.LOCAL);