Closed ido-ran closed 2 years ago
I've noticed something seems strange with the color sensor events from plank. When I've activated the Tick Physics debug option I've noticed that the definition of polygon zone for threejs seems to be very different from that of plank. The following image shows it.
As you can see from the image, while the threejs has a "step" at the top left corner, plank has a direct line connecting the two corners.
Maybe we should add some algorithm to turn these non convex polygons into a series of smaller convex polygons, there are a few algorithms which can do this iirc
Add 2 challenges for lesson 4 to use the color sensor.