I beleive that's teh bug, you say that you set the mass using NewtonBodySetMassProperties and it was fast, this is how I did it?
- Code: Select all
// set the mass here
NewtonBodySetMassProperties (compoundBody, 1.0f, NewtonBodyGetCollision(compoundBody));
// adding some visualization
DemoMesh* mesh = new DemoMesh("geometry", NewtonBodyGetCollision(compoundBody), "smilli.tga", "smilli.tga", "smilli.tga");
DemoEntity* const entity = new DemoEntity(matrix, NULL);
entity->SetMesh(mesh);
mesh->Release();
NewtonBodySetUserData(compoundBody, entity);
scene->Append(entity);
when I do that I see the huge slow down.
if you did it diffrently, can you please show me hwo were did you set it up, in the demo?
I am guessing that the scale is acting on the single child shapes but it not working on the compound pruner, so the huge box is see all of the children of the secung compound. all 100,000 of them.
It is very eassy to fix, I will fix, but it will be tonight I have to go to work now.