Skip to content

Commit

Permalink
Adjusted ray
Browse files Browse the repository at this point in the history
  • Loading branch information
tracygardner committed Jul 24, 2024
1 parent f3f46a1 commit 4c9db60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flock.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,7 @@ function checkIfOnSurface(mesh) {
const hit = window.scene.pickWithRay(ray);

//console.log(`Raycasting from: ${rayOrigin.toString()}`);
//console.log(
`Ray hit: ${hit.hit}, Distance: ${hit.distance}, Picked Mesh: ${hit.pickedMesh ? hit.pickedMesh.name : "None"}`,
);
//console.log(`Ray hit: ${hit.hit}, Distance: ${hit.distance}, Picked Mesh: ${hit.pickedMesh ? hit.pickedMesh.name : "None"}`,);

return hit.hit && hit.pickedMesh !== null && hit.distance <= 0.1;
}
Expand Down

0 comments on commit 4c9db60

Please sign in to comment.