User forums > Help

How to use gdb in C::B?

<< < (4/6) > >>

sethjackson:

--- Quote from: selles on November 26, 2005, 02:01:29 am ---I placed the comment " / / " in the line where the debbuger stops, int the class MapaCtrl exactly in that line:


--- Code: ---    ...

  seletorMapa = cena->createOctTreeTriangleSelector(nivelMalha->getMesh(0), nivelNodo, 128); //the chash is in that line!!!
    ...


--- End code ---
:wink:

with relationship to the " sleep ", sorry, that is a test that I am doing and I posted with the code, please ignore that line.. :)

Thanks for the answer,

                Selles



--- End quote ---

Ok about the sleep part. :)

Umm what are the function values at that moment?

selles:
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.


--- Code: ---
                                      ...

       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));

                                      ...


--- End code ---


the collision probably run of transparent way  in a internal loop..

thanks,

Selles

sethjackson:
I meant what are the function values?. An example would be nivelNodo and the value would be 1. Sorry I'm confusing sometimes. :)

selles:
oh, I was who didn't understand your question  :oops: ..sorry

I have added the pointer in watch, and in exact moment of the error, the values are:

seletorMapa = (struct ITriangleSelector*) 0xbaadf00d
nivelMalha = (struct IAnimatedMesh*) 0x0
nivelNodo = (struct ISceneNode*) 0x0

also sorry the slowness in posting here, it is that am very close of a condition of an athlete for here :lol:

thanks,

Selles

sethjackson:
Ok are nivelMaha and nivelNodo supposed to be 0? That is all I can think of unless selectorMapa is supposed to be 0.


--- Quote ---also sorry the slowness in posting here, it is that am very close of a condition of an athlete for here :lol:

--- End quote ---

Off topic but what sport(s) do you play?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version