IsCollision You can also use the conversion to boolean to test if a collision happened. See the examples how to use this. Examples Collision collision = ...;
// Test if a collision really happened // if( collision.IsCollision() ) { allegro_message( "Collision!" ); } // The same as above by using the operator bool() // if( collision ) { allegro_message( "Collision!" ); } Other functions of the class Collision
Questions about IsCollision? Click here. |