EntityCollided

Blitz3D Forums/Blitz3D Beginners Area/EntityCollided

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am sure this is really simple but I have not got it.

I have the code

Function Block_distroy()
	For z.map = Each map
		For x.Bullet = Each Bullet
			If EntityCollided(x\mesh,z\mesh)
				DebugLog"Collieded"
				FreeEntity x\Mesh
				FreeEntity z\Mesh
				Delete z
				Delete x
			EndIf
		Next
	Next
End Function


The idea of this funcion is that ir detects a collison between the bullet and a boc created by the creat box command.

I always thought you used the paramters of enititycolided were the two things which were have collisions checked between, but appears not, I don't know if any one will get what I am going on about but oh well have a look please.

Agamer