JV-ODE Physics Thread 10

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This maybe something fundamental I'm missing, but why aren't the blocks I'm creating as follows 'rigid' ? (I was attempting to create a track (akin to stunt car racer) using your ramp code to jump the car onto the track... But my track doesn't appear very solid... i.e. the car moves through it, instead of riding on top of it.)


For z = 100 To 1000 Step 31  ;  31 apart in the z plane

		ode.ODEGeom=New ODEGeom		
		ode\body=dBodyCreate(World)
		ode\geom=dCreateBox(Space,2,3,z)
		dGeomSetRotation(ode\geom,0,0,90)
		dGeomSetPosition(ode\geom,15,5,z)		
		ode\mesh=CreateCube()
		ScaleMesh ode\mesh,4,60,20
		RotateMesh ode\mesh,0,0,0
		PositionMesh ode\mesh,0,0,0
		EntityColor ode\mesh,0,100,200
		EntityAlpha ode\mesh,1	
	
Next



Thanks in advance....