Am I doing something obviously wrong here, I can't seem to create a box the same size as my mesh as far as the physics world is concerned, is it a problem the 'width' of my mesh is zero upon loading ?
xstart=16 ystart=5 zstart=1 xsz = 5 hsz = 4 dsz = 5 For bricks=1 To 20 ode.ODEGeom=New ODEGeom ode\body=dBodyCreate(World) dBodySetRotation(ode\body,0,0,0) dBodySetPosition(ode\body,(bricks*xstart),ystart,zstart) Smass=dMassCreate() dMassSetBoxTotal(Smass,CapsuleMass,xsz,hsz,dsz) ; not sure hat s direction of 1 means dBodySetMass(ode\body,Smass) dMassDestroy(Smass) ode\geom=dCreateBox(Space,2*xsz,2*hsz,2*dsz) ; Box has to be twice size of mesh ?? dGeomSetBody(ode\geom,ode\body) ode\mesh=LoadMesh("8_pt_for_u3d_spike.b3d") deep=MeshDepth(ode\mesh) ; upon load the depth of my mesh is 2 tall=MeshHeight(ode\mesh) ; upon load the height of my mesh is 1 width=MeshWidth(ode\mesh) ; upon load the width of my mesh is 0? FitMesh ode\mesh,width,tall,deep,xsz,hsz,dsz,0 ScaleMesh ode\mesh,0.5,0.5,0.5 RotateMesh ode\mesh,0,0,0 EntityColor ode\mesh,Rnd(255),Rnd(255),Rnd(255) EntityAlpha ode\mesh,1 EntityShininess ode\mesh,0.7 Next