My question:
I'm trying to translate one of the Chipmunk demos directly into ruby,
as a means of exploring the chipmunk.so extension and learning to use
it. But in the C demos, the space object has the "activeShapes,"
"staticShapes" and "bodies" properties.
This is my first day playing with the extension, so this is probably
obvious, but:
Given an instance of Space, how can I get a list of all of the shapes/
bodies I've added to it?
As far as I can tell, in C, the cpSpace struct has (cpSpace)Hashes for
active/static shapes, and an array of bodies. And in the demo code,
the drawing loop accesses the space->activeShapes hash.
But with chipmunk.so, I can't find analogues for any of those, and
after spending an hour irb-ing around I still can't find them ...
Many thanks from a newbie!