(Formerly known as AreCharactersColliding, which is now obsolete)
Character.IsCollidingWithChar(Character* otherChar)
Checks if the character is touching OTHERCHAR. This function just checks
the baseline of both characters, so if one is standing a fair distance behind
the other, it will not be marked as colliding.
Returns 1 if the characters feet are touching, 0 otherwise.
Example:
if (cEgo.IsCollidingWithChar(cMan) == 1)
{ colliding code here }
will execute the colliding code only if the characters EGO and MAN are colliding.
See Also: Character.IsCollidingWithObject,
Object.IsCollidingWithObject,
AreThingsOverlapping
|