Skip to content
Snippets Groups Projects
Commit 3e977dad authored by Cedric.dosreis's avatar Cedric.dosreis
Browse files

debug food

parent d10fbcd3
Branches
No related tags found
No related merge requests found
......@@ -175,11 +175,10 @@ function checkCollisionFood() {
var index = -1;
for (let i = 0; i < foods.length; i++) {
if (collisionResults[0].object.name === foods[i].name ){
console.log()
index = i;
}
}
if (index > 0){
if (index >= 0){
foods.splice(index, 1);
}
scene.remove(collisionResults[0].object);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment