I am following the most popular and the greatest coding teacher, Daniel Shiffman on youtube now.
Currently, I am on the Box2D chapters. While I am playing with PBox2D, found one issue which has been bothering me for 2 days, I think there is something wrong with the PBox2D lib but I am not sure. The issue I think it is something related to coordinate conversion.
Hi – thank you for this question, with code provided and illustration.
Would like to help, but this kind of question is hard to answer. You don’t say:
what you expect to happen
what, specifically, is happening instead
It is also unclear what you have uploaded – the line 14/15, have you uploaded it in “expected” or “unexpected” state, and what does changing those lines represent? When I quickly swap them, run, and click the mouse, I can’t tell what (is supposed to have) changed.
Also, processing sketches are invalid unless in a folder of the same name. To make it easier for people to access them via github, put them in a subfolder of the repo–with the correct folder name – otherwise they download broken. This is especially hard with multi-pde sketches, as we have to guess which of the files is the lead file, and should be the folder name.