Quote:

how does the object get pushed through the wall? maybe you wrongly build up extreme forces (for example by setting the velocity each frame)?




If I throw an object on the book or on the plate, they get pushed through the table.
This is the function for throwing:
Code:

void DebugThrow(char* FileName)
{
NewtonBody *body;
ENTITY* Temp_ent = 0;

while(1)
{
while(!mouse_left){wait(1);}

if(Temp_ent)
{
NewtonDestroyBody(nworld, body);
ent_remove(Temp_ent);
Temp_ent = NULL;
}

Temp_ent = ent_create(FileName,camera.x,NULL);
vec_scale(Temp_ent.scale_x,0.3);
body = newton_addentity(Temp_ent, 3, NEWTON_BOX, onforceandtorque);
VECTOR v;
vec_set(v, vector(20, 0, 0));
vec_rotate(v,camera.pan);
NewtonBodySetVelocity(body, vectorf(v.x,v.y,v.z));

while(mouse_left){wait(1);}
wait(1);
}
}


onforceandtorque is the same function you used in your example.

This is he scene where I use newton:


Quote:


btw. i think the new newton version isn't that far away anymore. it will be great. it will be much faster (stacking hundreds of bodies won't be a problem anymore) and there will be new stuff like an easier to use vehicle joint and character controller.



That sounds awsome! That should be a good reason to visit their webpage a bit more often The clips I remember were great

Thanks for your time and help

Last edited by Slin; 12/29/07 15:30.