Moderators: Sascha Willems, walaber
blackbird_dream wrote:it seems that lots of things have changed. Now my truck doesn't behave like it did
my tire model has been strongly affected
static int OnAABBOverlap(const NewtonJoint* const contact, dFloat timestep, int threadIndex)
{
NewtonContactJointResetSelfJointsCollision(contact);
return 1;
}
int dNewtonWorld::OnBodiesAABBOverlap(const NewtonJoint* const contact, dFloat timestep, int threadIndex)
{
NewtonBody* const bodyPtr0 = NewtonJointGetBody0(contact);
NewtonBody* const bodyPtr1 = NewtonJointGetBody1(contact);
//dNewtonWorld* const world = (dNewtonWorld*)NewtonMaterialGetMaterialPairUserData(material);
NewtonCollision* const newtonCollision0 = (NewtonCollision*)NewtonBodyGetCollision(bodyPtr0);
NewtonCollision* const newtonCollision1 = (NewtonCollision*)NewtonBodyGetCollision(bodyPtr1);
dNewtonCollision* const collision0 = (dNewtonCollision*)NewtonCollisionGetUserData(newtonCollision0);
dNewtonCollision* const collision1 = (dNewtonCollision*)NewtonCollisionGetUserData(newtonCollision1);
//const dMaterialProperties materialProp = world->FindMaterial(collision0->m_materialID, collision1->m_materialID);
//return materialProp.m_collisionEnable ? 1 : 0;
return 1;
}
blackbird_dream wrote:....
After some settings I'm closer now to the model implemented under version 1.5. The model reacts fast and well.
Thks Julio for your great job.
Don't change too many things now
blackbird_dream wrote:would it change something in your code ?
I'm afraid my model is not compatible with v5.4.6 which I'm supposed to build for.
Users browsing this forum: No registered users and 2 guests