NxOgre 1.6 change object texture

joaopccosta

15-11-2010 15:15:15

Hello.

this may sound dumb but...

in BloodyMess, if I wanted to change the texture of an object this would work:
mBody->getEntity()->setMaterialName("Examples/"+name);

but i can't find how to do it in 1.6 x_x (my eyes are melting)
help? :P

betajaen

15-11-2010 15:39:11

Get the SceneNode, Get the first attached Movable Object, cast into an Entity and there you go.