# IRdCollInfoDisp Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | Collision ([out, retval] RtBool *bCollision)
HRESULT | GetCount ([out, retval] RtDWORD *count)
HRESULT | CollPointCount ([out, retval] RtDWORD *count)
HRESULT | Object ([in] RtDWORD index,[out] BSTR *name,[out, retval] int *coll_type)
HRESULT | GroundCollision ([out] VARIANT *pPoint,[out, retval] RtBool *bCollision)

## Detailed Description

IRdCollInfoDisp access collision data in data object. This is script version of IRdCollInfoDisp

## Member Function Documentation

HRESULT IRdCollInfoDisp::Collision | ( | [out, retval] RtBool * | bCollision | ) |

Check whether data object contains collision data.

Returns:
  bCollision [out,retval} If true, collision data is present.

HRESULT IRdCollInfoDisp::GetCount | ( | [out, retval] RtDWORD * | count | ) |

Return number of colliding objects.

Returns:
  count [out,retval] Number of colliding objects.

HRESULT IRdCollInfoDisp::CollPointCount | ( | [out, retval] RtDWORD * | count | ) |

Return number of collision points.

Returns:
  count [out,retval] Number of collision points.

HRESULT IRdCollInfoDisp::Object | ( | [in] RtDWORD | index,
|  | [out] BSTR * | name,
|  | [out, retval] int * | coll_type |
| ) |  |  |

Return colliding object.

Parameters:

  | index | [out] Index of object in collision data.
  | name | [out] Full name identification of the object.

Returns:
  coll_type [ret,val] Collision type,IRdCollInfoDisp::RtCollType

HRESULT IRdCollInfoDisp::GroundCollision | ( | [out] VARIANT * | pPoint,
|  | [out, retval] RtBool * | bCollision |
| ) |  |  |

Return ground collision.

Parameters:

  | pPoint | [out] Collision point.
  | bCollision | [out,retval] True if collision is detected.