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.