From 98d7d6cb702af2708f20e7cf16ee10a9f71b578a Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sat, 13 Mar 2021 15:43:56 -0500 Subject: My First WASM application is rendering a triangle on the frontend --- frontend/2d/_collisions/circle_line.html | 2 +- frontend/2d/_collisions/rectangle_line.html | 2 +- frontend/2d/_collisions/rectangle_line.js | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) (limited to 'frontend/2d/_collisions') diff --git a/frontend/2d/_collisions/circle_line.html b/frontend/2d/_collisions/circle_line.html index 038c759..b6712f3 100644 --- a/frontend/2d/_collisions/circle_line.html +++ b/frontend/2d/_collisions/circle_line.html @@ -6,7 +6,7 @@ - + Physics for Games diff --git a/frontend/2d/_collisions/rectangle_line.html b/frontend/2d/_collisions/rectangle_line.html index 5db958c..b37f47c 100644 --- a/frontend/2d/_collisions/rectangle_line.html +++ b/frontend/2d/_collisions/rectangle_line.html @@ -6,7 +6,7 @@ - + Physics for Games diff --git a/frontend/2d/_collisions/rectangle_line.js b/frontend/2d/_collisions/rectangle_line.js index dec5108..e42cc84 100644 --- a/frontend/2d/_collisions/rectangle_line.js +++ b/frontend/2d/_collisions/rectangle_line.js @@ -107,19 +107,15 @@ lLowerRight = multMat4ByVec2(pRectangle.model, vec2(pRectangle.width / 2.0, -pRectangle.height / 2.0)); if (doesPointIntersect(lLowerLeft, pLine)) { - console.log('Lwer left'); lCollisionPoint = vec2(-pRectangle.width / 2.0, -pRectangle.height / 2.0); return true; } else if (doesPointIntersect(lUpperLeft, pLine)) { - console.log('Upper left'); lCollisionPoint = vec2(-pRectangle.width / 2.0, pRectangle.height / 2.0); return true; } else if (doesPointIntersect(lUpperRight, pLine)) { - console.log('Upepr right'); lCollisionPoint = vec2(pRectangle.width / 2.0, pRectangle.height / 2.0); return true; } else if (doesPointIntersect(lLowerRight, pLine)) { - console.log('Lower right'); lCollisionPoint = vec2(pRectangle.width / 2.0, -pRectangle.height / 2.0); return true; } -- cgit v1.2.1