Remove friend class BodyNode in Joint.