Cocos2d-x v3 joints not working

I’m about 99% sure i’m doing missing something obvious here, but in the default project I can’t get joints to work.

This is in the init method btw.

PhysicsJointFixed * joint = PhysicsJointFixed::construct(headCol, tailpartBody, Vec2(10, 10)); 
sceneWorld->addJoint(joint);

It’s in the default project, so sceneWorld is a PhysicsWorld object, but the project is still crashing on the second line. What am i missing?! If i remove the second line nothing happens (I.e. there is no joint created.)

Thanks in advance!
Oisin.

I reply too fast… I found a solution on this topic : Physics joint distance problem