Open tomsiw opened 11 months ago
I've got the same problem as 'tomsiw'. Trying to add Box2D and JBox2D in a way as suggested long time ago --https://forum.processing.org/two/discussion/25473/box2d-for-python-mode.html-- in order to explore chapter 5 in 'the Nature of Code' by Daniel Schiffman. But it doesn't work, all I get is the same java.lang.ClassCastException ...
Hi @tomsiw and @RMMeerding!
I'm afraid Processing Python Mode currently lacks a maintainer, at this point.
If you, like me, enjoy using the Processing graphics vocabulary with Python, you can do it with Python 3, using p5py (which is all new and does not depend on Processing/Java, you would need to use only libraries from the Python ecossystem) or py5 (which uses Processing 4 jars, many Processing Java libraries work).
For 2D Physics I use https://pymunk.org, for audio I'm still looking around.
A call to add_library(...) always throws ClassCastException no mater which library I'm trying to add. Callstack:
Example code: