Search found 97 matches

by eejin
Mon Jul 25, 2011 3:12 pm
Forum: Beginners Help
Topic: Model moving with node
Replies: 36
Views: 1163

Re: Model moving with node

So I now got this where I set the target too but it still stays the same.

Code: Select all

    scene::ICameraSceneNode* camera = smgr->addCameraSceneNode(0,core::vector3df(0,50,-40),core::vector3df(0,5,0));
    camera->setTarget(node->getPosition());
    camera->setParent(node);
by eejin
Mon Jul 25, 2011 1:07 pm
Forum: Beginners Help
Topic: Model moving with node
Replies: 36
Views: 1163

Re: Model moving with node

Ok I have now done this:     scene::ICameraSceneNode* camera = smgr->addCameraSceneNode(0,core::vector3df(0,50,-40),core::vector3df(0,5,0));     camera->setParent(node); But it acts kind of strange becouse when I press a or d the model doesn't stay in the center of the screen so that means the camer...
by eejin
Sun Jul 24, 2011 9:22 pm
Forum: Beginners Help
Topic: Model moving with node
Replies: 36
Views: 1163

Re: Model moving with node

Scenegraph? But how can I define the parent node when I can only enter the child node or is ISceneNode the parent?
by eejin
Sun Jul 24, 2011 8:43 pm
Forum: Beginners Help
Topic: Model moving with node
Replies: 36
Views: 1163

Re: Model moving with node

I don't need a complicated 3rd person camera. Do you now dead frontier ? I want something like that so it would be quite easy in my opinion. http://www.deadfrontier.com/ The code line in my post above this one kind of confuses me. I need to use that to create a node? And what if it is an animated mo...
by eejin
Sun Jul 24, 2011 8:17 pm
Forum: Beginners Help
Topic: Model moving with node
Replies: 36
Views: 1163

Re: Model moving with node

Hold on while I scrape my brain off the floor. Might take a moment.
Btw thank you :D.
Btw if I want my camera to follow my modelnode how should I do that?

Code: Select all

scene::ISceneNode::addChild  ( ISceneNode *  child  )  

So I should place this after I create the node and make child the camera ?
by eejin
Sun Jul 24, 2011 3:20 pm
Forum: Beginners Help
Topic: Model moving with node
Replies: 36
Views: 1163

Re: Model moving with node

As far as I now the model should move with the node but it doesn't. Instead when I press one of the wasd keys the camera moves and the model stays stationary. Here I created the mesh variable: scene::IAnimatedMesh* mesh = smgr->getMesh("../../media/sydney.md2"); and here it is linked to no...
by eejin
Sun Jul 24, 2011 12:06 pm
Forum: Beginners Help
Topic: Model moving with node
Replies: 36
Views: 1163

Model moving with node

Hello, I'm new to Irrlicht and I am trying to make a camera wich is attached to a node. Now my camera moves but the model doesn't but the model is attached to a node wich is then moved. And the camera is set at 0,50,-40 0,5,0 but it moves when I press wasd but I can't find any code wich moves the ca...