I need to remove a joint by code. I can get orxBODY by using orxOBJECT_GET_STRUCTURE, but I can't figure out how to get the joint I want to remove (as it is needed by orxBody_RemoveJoint). How can I achieve this?
EDIT:
Ahh just after I posted I realized I missed the orxBody_GetNextJoint function. Sorry.
Comments
You've probably already found orxBody_GetJointName() which will allow you to select the correct joint before removal but I thought I'd mention it here if someone is looking for those in the future.
It gets the first joint from the list correctly, but the next one returns orxNULL (and the ChildJointList for my object has 3 more joints).
Also, if you turn Physics.ShowDebug to true in config, do you see the joints being displayed?
Yes, the joints are displayed.
I can also write the example I owe you directly in your code in that case.
Well now it's fixed but you'll need to use the SVN version.