Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pandrr/cables
Browse files Browse the repository at this point in the history
  • Loading branch information
undev-studio committed May 15, 2024
2 parents da7712b + 1e6e25d commit 50782da
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,21 @@ function renderOverlay(body)
{
// console.log("sphere")
cgl.pushModelMatrix();
mat4.translate(cgl.mMatrix, cgl.mMatrix, body.pos);
CABLES.UI.OverlayMeshes.drawSphere(op, body.radius * 2, true);
// mat4.translate(cgl.mMatrix, cgl.mMatrix, body.pos);
CABLES.UI.OverlayMeshes.drawSphere(op, body.radius, true);
cgl.popModelMatrix();
}
else if (body.type === SHAPE_AABB) // AABB
{
cgl.pushModelMatrix();
mat4.translate(cgl.mMatrix, cgl.mMatrix, body.pos);
CABLES.UI.OverlayMeshes.drawCube(op, body.size[0], body.size[1], body.size[2]);
// mat4.translate(cgl.mMatrix, cgl.mMatrix, body.pos);
CABLES.UI.OverlayMeshes.drawCube(op, body.size[0] / 2, body.size[1] / 2, body.size[2] / 2);
cgl.popModelMatrix();
}
else if (body.type === SHAPE_POINT) // point
{
cgl.pushModelMatrix();
mat4.translate(cgl.mMatrix, cgl.mMatrix, body.pos);
// mat4.translate(cgl.mMatrix, cgl.mMatrix, body.pos);
CABLES.UI.OverlayMeshes.drawAxisMarker(op, 0.05);
cgl.popModelMatrix();
}
Expand Down

0 comments on commit 50782da

Please sign in to comment.