Getting colission info back from Tokamak
Blitz3D Forums/Blitz3D Programming/Getting colission info back from Tokamak
| ||
Heya everybody. I've been successfully using Tokamak on my project for three weeks now, and I'm now getting into the finishing touches (i.e. the second 90%) of the game, and it's time for audio. I want to play a sound whenever two objects collide in Tokamak, but I can't seem to find any functions I can use to say something like "for all objects of this type, for all of another type, when their physical representaions collide, do x". I.e. there doesn't seem to be a Tokamak equivalent of "if entities collide". Now I know the first workaround will be that I use good old vanilla Blitz collisions to do this sensing. I'm not that keen on wasting all the procession power on also having blitz colisions JUST for a single audio sample, but if that must be done, it must be done. Thanks! |
| ||
http://playerfactory.proboards25.com/index.cgi?board=tokamak&action=display&num=1083406865 My post there shows how to set it up. You also need to use TOKRB_SetCollisionID and TOKSIM_SetCollisionResponse I presume you have the latest version, so it has my docs? look it up in there. |