Other Collision Commands

Before leaving collisions, there are a few other pieces of code that you should become familiar with. Throughout this chapter, we have been using the CountCollisions command to detect when a collision occurs, but there are other collision commands that you can use as well:

EntityCollided(entity,type)—This command will tell Blitz3D what other object was involved with the entity that you specified.

CollisionX(entity,index), CollisionY(entity,index), CollisionZ(entity, index)—These commands will produce the x, y, and z coordinates for the location of a collision.

CollisionEntity—This command will tell Blitz3D what other object was involved with the entity that you specified.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.102.111