Tokamak Physics Thread 5

Blitz3D Forums/Blitz3D Userlibs/Tokamak Physics Thread 5

Hi all, im having trouble setting up collsiions in tokamak, could anyone help?

Here is the code to set up toka:
TOKSIM_CreateSimulator(0,-5,0)
TOKSIM_SetCollisionResponse(1,2,3)



Here is the code to set up the player:

		p\CEnt = TOKRB_Create()
		TOKRB_AddBox(p\CEnt,MeshWidth(p\entity),MeshHeight(p\entity),MeshWidth(p\entity))
		TOKRB_SetLinearDamping p\CEnt,0.01
		TOKRB_SetAngularDamping p\CEnt,0.01
		TOKRB_SetMass p\CEnt,50.0
		TOKRB_SetCollisionID(p\CEnt,1)


and the "ground":
		map=CreateCube()
		ScaleEntity map,100,1,100
		maprb=TOKRB_Create()
		TOKRB_AddBox(maprb,200.0,2.0,200.0)
		TOKRB_SetCollisionID maprb,2


Yes, i am advancing in the code.

The player just passes through the white box...any ideas why?