I was unable to create any joints in my Rube file and kept getting the following error:
Could not find body A for joint (body id 3)
Could not find body B for joint (body id 0)
addJoint failed
I worked out it's because I had a custom body property called "id" which was causing the following corruption:
( getBody( 1 ).id == 3 ) = true
Had I read RTFM on custom properties first I might have saved myself from the mistake in the first place, however I'd still call this a bug because it allows users to corrupt the file through normal program operations.
Perhaps make a list of reserved class property names and prevent users from being able to make custom properties with those names.
Custom property bug
Re: Custom property bug
Good point, thanks.