Custom body type question

NoodlesOnMyBack

17-11-2008 17:54:24

Maybe a silly question, but i just implemented a custom body class with Bleeding 1.0.21, and in the example code of NxOgre page the Ogre nodes and entity are not created there, i should load them by myself? or its done internally with the passed actor parameters?

mcaden

18-11-2008 00:00:58

I believe it's done on this line:


mRenderable = mOwner->getSceneRenderer()->createNodeRenderable( renderParams );


but I haven't really looked. Is it not working for you?

NoodlesOnMyBack

18-11-2008 01:23:04

If i dont previously create a SceneNode with the name of it as specified in visualParams.mIdentifier, then that line you mentioned throw an exception saying it couldn find the scene node with that name.
But now im confused, you say its done internally? i create the node and atach the entity and works OK, with static and dynamic actors, but im paranoid that something maybe didnt worked very well.
I invoke the god all mighty betajaen to enlight us... :P

mcaden

18-11-2008 04:50:16


renderParams.mIdentifierUsage = renderParams.IU_Use;


Means use a sceneNode that already exist.

If you don't want to make the sceneNode in advance use IU_Create instead.