CrystalSpace

Public API Reference

CS::Collisions::iCollisionTerrain Struct Reference

A collision terrain is associated with a iTerrainSystem mesh, and consists of multiple cell colliders (CS::Collisions::iColliderTerrainCell objects). More...

#include <ivaria/collisions.h>

Inheritance diagram for CS::Collisions::iCollisionTerrain:

List of all members.

Public Member Functions

virtual iColliderTerrainCellGetCell (iTerrainCell *cell) const =0
 Get the terrain cell collider associated with the given terrain cell.
virtual iColliderTerrainCellGetCell (size_t index) const =0
 Get the terrain cell collider with the given index.
virtual size_t GetCellCount () const =0
 Get the count of terrain cell colliders in this collision terrain.
virtual iTerrainSystemGetTerrain () const =0
 Get the terrain system.

Detailed Description

A collision terrain is associated with a iTerrainSystem mesh, and consists of multiple cell colliders (CS::Collisions::iColliderTerrainCell objects).

This collision object is particular in the sense that it manages automatically by itself the addition and removal of cell colliders.

Main creators of instances implementing this interface:

Main users of this interface:

Definition at line 412 of file collisions.h.


Member Function Documentation

virtual iColliderTerrainCell* CS::Collisions::iCollisionTerrain::GetCell ( iTerrainCell cell  )  const [pure virtual]

Get the terrain cell collider associated with the given terrain cell.

virtual iColliderTerrainCell* CS::Collisions::iCollisionTerrain::GetCell ( size_t  index  )  const [pure virtual]

Get the terrain cell collider with the given index.

virtual size_t CS::Collisions::iCollisionTerrain::GetCellCount (  )  const [pure virtual]

Get the count of terrain cell colliders in this collision terrain.

virtual iTerrainSystem* CS::Collisions::iCollisionTerrain::GetTerrain (  )  const [pure virtual]

Get the terrain system.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1