I have started using Tokamak. Yippy!
But it seams to use banks alot, something I have not got into because createbank() is under-documented. So If anyone could point me to some tutorials or just explain banks better for me you have my undying gratatude. Specificly how to use them with Tokamak. For instance I found a truck rally sample by Sweeny and it uses banks to set the collision info for the terrain mesh.
So in this line, ColBank=CreateBank(104*10), how did he know how to set 104*10?
But it seams to use banks alot, something I have not got into because createbank() is under-documented. So If anyone could point me to some tutorials or just explain banks better for me you have my undying gratatude. Specificly how to use them with Tokamak. For instance I found a truck rally sample by Sweeny and it uses banks to set the collision info for the terrain mesh.
TOKSIM_CreateSimulator(0,-9.0,0) ;Sets the parameters for a material. Materials can be used for different things including triangles, ;rigid bodies, And animated bodies. (And once supported, particles) TOKSIM_SetMaterial 0,0,.1 ;(Index%,Friction#,Restitution#) ;Sets collisions ColBank=CreateBank(104*10) TOKSIM_SetCInfoBank ColBank TOKSIM_SetCollisionResponse -1,1,3 ; Impulse & Feedback originaly (-1,1,3) TOKSIM_SetCollisionResponse -1,2,0 ; No Impulse Or Feedback -1,2,0 tex = LoadTexture("track.bmp") Terrain = LoadMesh("track.3ds") ScaleMesh Terrain,30.0,30.0,30.0 RotateMesh Terrain,-90,0,0 EntityTexture terrain,tex MakeTokCollider(Terrain)
So in this line, ColBank=CreateBank(104*10), how did he know how to set 104*10?