New demo: Game of Life
Fully working. Grabbed the algorithm from Dan Shiffman’s The Nature of Code book.
I may update the look and feel… add some shader spice
I’m trying to use the intersectMesh on a TransformNode to detect collisions on two elements, but it doesn’t seem to work. Are there other alternatives to collision detection?
Please check line 165 on this PG if (element.intersectsMesh(pacMan, false)) {
I recommend you to use Typescript for type safety if you want to prevent this kind of errors in the future. TS will warn you that there is something wrong.
Hey @roland thanks for your quick response.
I carefully read all your changes and it really improved my code to achieved what I was aiming for regarding mesh collision detection.
On the createBone function, the return you added, was amazing. It really opened my mind with this