From 7e79f32d5a481ea5d5a7f3e3e7646b01f67a4cb2 Mon Sep 17 00:00:00 2001 From: Karan Mhetar Date: Sat, 23 May 2026 18:05:12 +0530 Subject: [PATCH] fix: replace magic /100 with toMeters() for plane length in InclinedPlane --- simulations/InclinedPlane.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simulations/InclinedPlane.jsx b/simulations/InclinedPlane.jsx index 2f91cea7..def18d18 100644 --- a/simulations/InclinedPlane.jsx +++ b/simulations/InclinedPlane.jsx @@ -17,7 +17,7 @@ import { SimInfoMapper, } from "../app/(core)/data/configs/InclinedPlane.js"; import chapters from "../app/(core)/data/chapters.js"; -import { toPixels } from "../app/(core)/constants/Utils.js"; +import { toPixels, toMeters } from "../app/(core)/constants/Utils.js"; // --- Physics Classes --- import { InclinedPlaneBody } from "../app/(core)/physics/InclinedPlaneBody.js"; @@ -81,7 +81,7 @@ export default function InclinedPlane() { planeRef.current = { startX: w * 0.25, startY: h * 0.75, - length: planeLength / 100, // Convert to meters + length: toMeters(planeLength), }; // Initialize body