PathEngine home previous: iPath::size()next: iCollisionInfo::getCollidingAgent()
Contents, API Reference, Interfaces, iCollisionInfo

Interface iCollisionInfo

Description

Provides information about first contact, in the case of a collision.

Defined in SDKRoot/include/i_pathengine.h.

Pooling

iCollisionInfo objects are pooled internally.

Construction and Deletion

iCollisionInfo objects are constructed and returned by certain collision queries, and also by iAgent::advanceAlongPath().
iCollisionInfo objects can be deleted explicitly by calling delete on the pointer or by calling the object's destroy() function. All iCollisionInfo objects are deleted by a call to iPathEngine::deleteAllObjects().
A pointer to an iCollisionInfo object must not be used after the object has been deleted.

All iCollisionInfo objects relating to a given mesh get destroyed automatically when that mesh is destroyed.

Methods:

getCollidingAgent

Returns the agent, if an agent caused the collision.

getCollidingLine

Returns coordinates for a line of contact.


Documentation for PathEngine release 5.24 - Copyright © 2002-2010 PathEnginenext: iCollisionInfo::getCollidingAgent()