diff options
author | Matthew Kosarek <matthew.kosarek@vention.cc> | 2021-02-27 17:32:32 -0500 |
---|---|---|
committer | Matthew Kosarek <matthew.kosarek@vention.cc> | 2021-02-27 17:32:32 -0500 |
commit | d1b528b01796601c2bfea7b1a9813e5907e1c728 (patch) | |
tree | 77e2200e930fcad2166edf1e3d31d4cd1211db56 /frontend/_shared/math/circle.js | |
parent | 026abdb98ad30209df0e88795f25b1f74556585e (diff) |
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
Diffstat (limited to 'frontend/_shared/math/circle.js')
-rw-r--r-- | frontend/_shared/math/circle.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |