Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
neu5 committed Jan 10, 2024
1 parent 1c66db8 commit 568e748
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/utils/RaycastVehicle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions packages/client/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ const addSphere = ({
};

const addVehicle = ({
colorName,
// colorName,
scene,
shadowGenerator,
}: {
}: // shadowGenerator,
{
colorName: string;
scene: Scene;
shadowGenerator: ShadowGenerator;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 568e748

Please sign in to comment.