texture of a object

ghiboz

11-05-2007 16:37:09

hi again!
if I create a body like this:

nxOgre::body *myCube2 = mScene->createBody(
"myCube2",
"cube.1m.mesh",
new nxOgre::cubeShape(1),
1.5f,
nxOgre::pose(
Vector3(-2.5,7.5,2.5),
Quaternion(Radian(Degree(55)),Vector3::UNIT_Y)
)
);

and after I wish change the texture of this body...
how can I do this?
regards!

betajaen

11-05-2007 18:06:02

This is an Ogre question, but you set it the material via in the entity.

mBody->mEntity->setMaterial(..);