the 1st argument is the mesh 3d that is the map scene(was loaded from a file)
the 2nd argument is the node which the mesh map is attachedin the scene manager
the 3rd argument is the minimal polygons per node.
so, I have created the triangle selector for the mesh map, this allows the engine to do the collision.
note that there are a statement "ITriangleSelector* seletor." in the begin of the namespace Cente3D but outside any class..
in MapaCtrl class was done te detection of the scene (mesh map) for the collision, continuing, in the AtorLocal class was created a collision response for the collision of a actor (player) with the scene..for that, note that the seletor pointer was used, therefore seletor is a global pointer..I already to inherit that pointer, but hte program not compile.
that is the codeline use the seletor pointer.
...
ISceneNodeAnimator* nodoAnim = cena->createCollisionResponseAnimator(seletorAtor, nodo,
vector3df(raio.X,
raio.Y,
raio.Z),
vector3df(0.0f, -1.0f ,0.0f),
vector3df(0.0f, -raio.Y, 0.0f));
...
the collision probably run of transparent way in a internal loop..
thanks,
Selles