Skip to content

Commit

Permalink
add reset functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
UttejK committed Jul 6, 2023
1 parent 7d0c20a commit 686bdf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1,136 deletions.
3 changes: 2 additions & 1 deletion src/BabylonScene.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const BabylonScene = () => {
const face = hit.faceId / 2;
const facet = 2 * Math.floor(face);
const normal = hit.getNormal();

// console.log(face, facet);
setHitInfo({
face,
facet,
Expand Down Expand Up @@ -210,6 +210,7 @@ const BabylonScene = () => {
Reset.color = "#ffffff";
Reset.paddingRight = "20px";
Reset.paddingTop = "20px";
Reset.hoverCursor = "pointer";

Reset.onPointerClickObservable.add(function () {
box.dispose();
Expand Down
Loading

0 comments on commit 686bdf1

Please sign in to comment.