CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csColliderHelper Class Reference

This is a class containing a few static member functions to help work with csColliderWrapper and collision detection in general. More...

#include <collider.h>

List of all members.

Static Public Methods

void InitializeCollisionWrapper (iCollideSystem *colsys, iMeshWrapper *mesh)
 Initialize collision detection for a single object. More...

void InitializeCollisionWrappers (iCollideSystem *colsys, iEngine *engine, iRegion *region=NULL)
 Initialize collision detection (i.e. More...


Detailed Description

This is a class containing a few static member functions to help work with csColliderWrapper and collision detection in general.

Definition at line 118 of file cstool/collider.h.


Member Function Documentation

void csColliderHelper::InitializeCollisionWrapper iCollideSystem   colsys,
iMeshWrapper   mesh
[static]
 

Initialize collision detection for a single object.

This function will first check if the parent factory has a collider. If so it will use that for the object too. Otherwise it will create a new collider and attaches it to the object. The new collider will also be attached to the parent factory if it supports iObjectModel.

This function will also initialize colliders for the children of the mesh.

void csColliderHelper::InitializeCollisionWrappers iCollideSystem   colsys,
iEngine   engine,
iRegion   region = NULL
[static]
 

Initialize collision detection (i.e.

create csColliderWrapper) for all objects in the engine. If the optional region is given only the objects from that region will be initialized.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14