(Formerly known as AreCharObjColliding, which is now obsolete)
Character.IsCollidingWithObject(Object* obj)
Checks whether the character's feet (ie. the bottom third of the character) are
touching OBJ. This can be used to determine if the character is standing on the object.
Returns 1 if they are, and 0 if they are not.
Example:
if (cEgo.IsCollidingWithObject(object[3]) == 1) {
// colliding code here
}
will execute the colliding code only if the character EGO and the object number 3 are colliding.
See Also: Character.IsCollidingWithChar,
Object.IsCollidingWithObject,
AreThingsOverlapping
|