Skip to content

Instantly share code, notes, and snippets.

@lalanikarim
Created September 11, 2012 04:26
Show Gist options
  • Save lalanikarim/3695955 to your computer and use it in GitHub Desktop.
Save lalanikarim/3695955 to your computer and use it in GitHub Desktop.
Create floor
neAnimatedBody * floor = world->CreateAnimatedBody();
neGeometry* geom = floor->AddGeometry();
geom->SetBoxSize(1500,50,1500);
floor->UpdateBoundingInfo();
neV3 pos;
pos.Set(0,-600,0);
floor->SetPos(pos);
ISceneNode * node = smgr->addCubeSceneNode(1);
node->setScale(vector3df(1500,50,1500));
node->setPosition(tokVectorToIrrlicht(pos));
node->setMaterialFlag(EMF_LIGHTING,false);
node->setMaterialTexture(0,driver->getTexture("/usr/share/irrlicht/media/wall.jpg"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment