Not sure if this should be considered a bug or not.
If you have a collision between two entitys and then free the entity that was collided with (the one that didn't move) it is still listed in the collision list.
Try this:
This isn't exactly a bug, but it would be very helpful if blitz removed the entity from the list of collisions.
Sorry if this has been discussed before, but I couldn't see anything obvious from a couple of quick searches
If you have a collision between two entitys and then free the entity that was collided with (the one that didn't move) it is still listed in the collision list.
Try this:
Graphics3D 800,600,16,2 SetBuffer BackBuffer() Camera=CreateCamera() PositionEntity Camera,0,0,-20 ;Create 2 spheres and position them apart Sphere1=CreateSphere() Print "Sphere 1 - "+Sphere1 PositionEntity Sphere1,-5,0,0 EntityRadius Sphere1,1 EntityType Sphere1,1 ResetEntity Sphere1 Sphere2=CreateSphere() Print "Sphere 2 - "+Sphere2 PositionEntity Sphere2,5,0,0 EntityRadius Sphere2,1 EntityType Sphere2,1 ResetEntity Sphere2 ;Generate a collision by moving sphere1 into sphere2 Collisions 1,1,2,1 TranslateEntity Sphere1,15,0,0 UpdateWorld FreeEntity Sphere2 ;NOTE: Try disabling this line ;Display collision info Print For a=1 To CountCollisions(Sphere1) ent=CollisionEntity(Sphere1,a) typ=GetEntityType(ent) Print "Hit "+ent+" (type: "+typ+")" Next WaitKey End
This isn't exactly a bug, but it would be very helpful if blitz removed the entity from the list of collisions.
Sorry if this has been discussed before, but I couldn't see anything obvious from a couple of quick searches