Code: Select all
core::vector3df human=node->getPosition();
human.X=158;
human.Z=-858;
human.Y=0;
node->setPosition(human);
Code: Select all
scene::ILightSceneNode * feny = device->getSceneManager()->addLightSceneNode( 0 );
feny->setPosition(core::vector3df(131,323,-185));
feny->getLightData().AmbientColor = video::SColorf( 0,0,0 );
feny->getLightData().DiffuseColor = video::SColorf( 0.5f, 0.5f, 0.5f );
feny->getLightData().Position = feny->getPosition() ;
feny->getLightData().Radius = 100.0f ;
But how can it be, that the model gets any light if it is out of the radius? It should be completely dark, shouldn't it? or.....