[ODE] Why doesn't the ship it the floor?

Jon Watte hplus-ode at mindcontrol.org
Tue Apr 27 12:15:39 MST 2004


			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?




More information about the ODE mailing list