From d1b528b01796601c2bfea7b1a9813e5907e1c728 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sat, 27 Feb 2021 17:32:32 -0500 Subject: Close to being done on line-circle collisions, but it appears we're running into a rotation problem. Going to work on square-line collisions in the meantime --- frontend/_shared/math/circle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/_shared/math/circle.js') diff --git a/frontend/_shared/math/circle.js b/frontend/_shared/math/circle.js index 340d7dc..ba33021 100644 --- a/frontend/_shared/math/circle.js +++ b/frontend/_shared/math/circle.js @@ -71,7 +71,7 @@ function renderCircle(pGl, pProgramInfo, pCircle) { pGl.drawArrays(pGl.TRIANGLE_STRIP, 0, pCircle.vertexCount); } -function getMomentOfInertia(pCircle) { +function getCircleMomentOfInertia(pCircle) { return (Math.PI * Math.pow(pCircle.radius, 4)) / 4; } -- cgit v1.2.1