(Formerly known as AreObjectsColliding, which is now obsolete)
bool Object.IsCollidingWithObject(Object* obj2)
Checks if the specified object and OBJ2 are touching each other. Returns true if they
are, and false if they are not.
NOTE: This function only performs a rectangular check, even when pixel-perfect
click detection is turned on.
Example:
if (object[2].IsCollidingWithObject(object[3]))
{
Display("object 2 and 3 are colliding!");
}
will display the message if the objects 2 and 3 are colliding.
See Also: AreThingsOverlapping
|