pos = new dReal(3); pos = dBodyGetPosition(dship); You're leaking memory every frame there. //Create a geom. for the ship dgship = dCreateBox(space,50,50,50); //associate geom. and body dGeomSetBody(dgship,dship); Do you actually call dCollide() on the space, and create contact joints for the collisions found?