I get this when I added this code:
- Code: Select all
dMatrix location (GetIdentityMatrix());
dFloat kinematicCushion = 1.0f / 64.0f;
int defaultMaterialID;
defaultMaterialID = NewtonMaterialGetDefaultGroupID (GetEngine()->p_world);
dVector size (1.8748f, 0.4885f, 1.0f);
NewtonBody* playerBody = CreatePlayBody (GetEngine()->p_world, 100, location, size, defaultMaterialID);
dVector pin (0.0f, 1.0f, 0.0f, 0.0f);
dMatrix globalFrame (GetIdentityMatrix());
globalFrame.m_front = dVector (0.0f, 1.0f, 0.0f, 0.0f); // up direction in global Space
globalFrame.m_up = dVector (1.0f, 0.0f, 0.0f, 0.0f); // front direction in global Space
globalFrame.m_right = globalFrame.m_front * globalFrame.m_up; // strafing direction in global Space
dFloat maxStairStepFactor = 0.7f / size.m_x;
NewtonUserJoint* playerController = CreateCustomPlayerController (&globalFrame[0][0], playerBody, maxStairStepFactor, kinematicCushion);
I could spawn other Newton Bodies but it just seems as if its just jointlibraries that is causing the problem.