I'm trying to upgrade my code from newton2xx to newton3xx and some things I have trouble with converting:
NewtonSetPlatformArchitecture: it's commented out in newton.h Is it not needed anymore? What plattform is getting used now? I used it to force x87 mode so it gives the same results on all pcs. Can I still do that somehow?
NewtonSetWorldSize: I think I read somewhere that this is not needed anymore and can be removed from my code right?
NewtonMaterialGetContactPositionAndNormal: This now takes an additional body parameter. I always wondered why there was no body parameter in 2xx. I always assumed it's from body0's perspective and if I wanted it from body1's perspective, I'ld have to multiply the normal with -1. Was that correct? Does this assumption still hold for 3xx ?
NewtonReleaseCollision: I see there is NewtonDestroyCollision now. Is it just renamed or do I have to use it differently?
NewtonBodySetCentreOfMass & NewtonBodySetMassMatrix: They are renamed to NewtonBodySetCentreOfMass___ and NewtonBodySetMassMatrix___. Can I still use them?
NewtonCreateSphere: It's not an ellipsoid anymore

NewtonMaterialGetBodyCollisionID: This is what bothers me most. I need this in the collision callback to differentiate shapes, but it is commented out in newton.h. Just removing the comment didn't make it work

- Code: Select all
id0 = NewtonMaterialGetBodyCollisionID (material, body0);
if (id0 == 0) {
id0 = NewtonMaterialGetContactFaceAttribute (material);
}
id1 = NewtonMaterialGetBodyCollisionID (material, body1);
if (id1 == 0) {
id1 = NewtonMaterialGetContactFaceAttribute (material);
}
Is this a temporary removal?