set a Light position

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
chwc
Posts: 4
Joined: Tue Dec 23, 2008 2:11 am

set a Light position

Post by chwc »

hello.
i have this light.
scene::ILightSceneNode* luz = smgr->addLightSceneNode(0, core::vector3df(0,0,0),
video::SColorf(1.0f, 0.6f, 0.7f, 1.0f), 800.0f);
with wich function can i set it to another position with a vector3df date (like a camera)???
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

Code: Select all

luz->setPosition(vector3df(node->getPosition().X, node->getPosition().Y, node->getPosition().Z));
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
Post Reply