assert(island->getNbJoints() > 0); when one Scene has three bodys: a HingeJoint(connect two righidbody) and a righidbody without HingeJoint.