Whenever it's called from CustomKinematicController::SubmitConstraints
The actual line that crashes is
matrix = body->GetMatrix();
If I simply assign it to a proper local variable matrix then it works, it just crashes once I try to assign it to the reference. I've tried to include the dMath and dJointLibrary as both a static lib and including the files directly but both crash.
Has anyone had this and/or knows how to fix it?
btw - Everything works fine in Windows (and the non source version).