Having difficulty understanding Martin Niehoff's Grid Generator

Hello everyone. I was hoping you might be able to help me with something.

I am working on a project called ETA (https://playcanvas.com/project/596207/overview/eta-play-mode), and I am attempting to use collision picking to select tiles, as per https://developer.playcanvas.com/en/tutorials/entity-picking/

However, it isn’t working (the tile doesn’t pulse like in the tutorial). I’m using the blue “selected_squares” to test this, and I’ve enabled both collision and rigid body on said tile. As I got the script from the above link (which was linked on https://developer.playcanvas.com/en/tutorials/entity-picking/) on May 2017, it may be possible that the script is outdated. Alternatively, I put the script in the wrong place, or I accidentally broke the very nature of physics and ray casting/collisions in my game.

Also, I’ll be wanting the tile edges to switch color (from white to cyan), which means I’ll have to somehow swap the textures out.

I’ve also sent Martin himself an email.

Yep got the mail, but I will also reply in your other thread, as your question there is a bit more project specific.