JV-ODE Physics Thread 3

Blitz3D Forums/Blitz3D Userlibs/JV-ODE Physics Thread 3

Thank you Shifty,

Just read up on the dSetInternalSpaceCollideMode(0), and it works like a charm. Got 10 masive test land meshes loaded and runs as smooth as earlier testing with one.

Not to understanding on the point about using the different named geom's. Here let me post the code that I'm testing to load in a random series of land meshes to "build" a world.

Dim LandMesh(10)
Global Loc = 0

	For HC = 1 To 10
		LPiece = Rnd(1,3)
			LandMesh(HC) = LoadMesh("Hills"+LPiece+".b3d")
		
				ScaleMesh      LandMesh(HC),10,2,10
				EntityTexture  LandMesh(HC),Dirt
				ScaleTexture   Dirt,.05,.05
				EntityColor    LandMesh(HC),Rnd(100,250),Rnd(100,250),Rnd(100,250)

			trimesh = CreateTriMesh(LandSpace1,landMesh(HC))
			
				dGeomSetRotation(trimesh,0,0,0)
				dGeomSetPosition(trimesh,0,0,Loc)

			RotateEntity   LandMesh(HC),0,0,0
			PositionEntity LandMesh(HC),0,0.05,Loc

			Loc = Loc + 640

	Next


Now again just testing ideas, but as you can see I only have the "trimesh ='s" in the code and so I'm curious on the reason for making unique names for it.

If you could expand on that maybe I'm missing a very important point ;)

Topknot