I tried this, and it works; very impressive project! I managed to send the message "hi ':)" from Python to Algodoo, and "hello Python ':)" from Algodoo back to Python. 10/10
For reference, I ran the Python program by going to VSCode, running "cd [path/to/algodoo]" and then "python3 [path/to/program.py]"
Last edited at 2024/11/21 01:47:46 by 42flowermaster
Great explanation of floating-point errors! I think that Algodoo uses the "float" type as its floating-point datatype, which has 23 bits of precision. This explains why Algodoo starts heavily glitching around a million units away from the origin.
Last edited at 2025/01/08 22:35:57 by 42flowermaster
I would like to add that s_noonan's score of 45 is optimal. The 20 reflectors on the outer edge can have at most 1 reflection, but one of them can have 2. The 12 reflectors on the inside can have at most 2. Totaling this, 1 * 19 + 2 * 1 + 2 * 12 = 45
This is quite a unique tool, very well made! One enhancement I would offer is the ability to scale the polygons, probably by scaling the surfaces array you have coded into polygon generation.