Tokamak is brilliant to work with but it's friction and lack of cylinders is it's weakness.
Convex hull is a good cylinder replacement however much slower.
For example I have
TokCube(ent)
TokSphere(ent)
this creates a type and a tokamak rigid body (either cube or sphere) and adjusts the dimensions of the tok geo to match the size of the blitz entity. It then "links" the entity with the tokamak object.
Allowing me to update them all at once. As you can see I can then just load a car with loadanimmesh, and parse the entitynames for example the car body.
temp = TokCube(Findchild(car,"body")) ;- ALL DONE! the car body now has cube collision...
Then I can... SetMass(temp,10) with my other helper functions, as TokCube returns the rigid body.
The reason tokamak isn't this easy from the outset (same with ODE) is that it is so flexible... part of being a programmer is using your loaf.
Convex hull is a good cylinder replacement however much slower.
I just started using it again. I found the original layout to be a Pain in the arse to get used to so im writing yet more wrapper functions to make it easier to set up.
Of course! this is the done thing...For example I have
TokCube(ent)
TokSphere(ent)
this creates a type and a tokamak rigid body (either cube or sphere) and adjusts the dimensions of the tok geo to match the size of the blitz entity. It then "links" the entity with the tokamak object.
Allowing me to update them all at once. As you can see I can then just load a car with loadanimmesh, and parse the entitynames for example the car body.
temp = TokCube(Findchild(car,"body")) ;- ALL DONE! the car body now has cube collision...
Then I can... SetMass(temp,10) with my other helper functions, as TokCube returns the rigid body.
The reason tokamak isn't this easy from the outset (same with ODE) is that it is so flexible... part of being a programmer is using your loaf.