Type Question.
Blitz3D Forums/Blitz3D Programming/Type Question.
| ||
OK .. I have the following type or one like it. type block field x,y,z field collision_id field model end type So I then in game have about 100 blocks. I cant put them in an array as the number of blocks could and does change. I need a way to find out A) if any of the blocks are touching each toher and B) whats the handle of the blocks in question. Any ideas ? |
| ||
something like this?For block1.block=Each block For block2.block=Each block If block1<>block2 Then ; make sure that we're not checking the collision of a block with itself ;CHECK COLLISION between block1\model and block2\model ;If collided then ; handle1=block1\model ; handle2=block2\model ;Endif EndIf Next Next |
| ||
Thats way I tried it at first bu the results I got were strange. I will try it again I may have just had a typo or something.. I'll let you know. |