Replaceing a Mesh

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mab_5_uk
Posts: 12
Joined: Sun Dec 24, 2006 12:11 am
Location: Swansea

Replaceing a Mesh

Post by mab_5_uk »

Hi this is my frist Post and i hope some one can help i am trying Replace a Mesh i have stored in a vector i thowt this would work but i am getting bugs

Code: Select all

        NodePositions = FloorTiles[check]->getPosition();
        FloorTiles[check]= smgr->removeMesh(FloorTiles[check]);
        FloorTiles[check]= smgr->addAnimatedMeshSceneNode(FloorTileSet[A]);
        FloorTiles[check]->setPosition(vector3df(NodePositions));
the bug i am getting is:
irr::scene::ISceneManager' has no member named 'removeMesh'

if any one can help me i would be very grate full :?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

It is unclear the exact behavior you want. I believe that you are trying to remove the scene node from the scene. If so, you want to call FloorTiles[check]->remove().

Travis
Post Reply