Search found 9 matches

by xtravanta
Fri Feb 11, 2011 5:04 pm
Forum: Beginners Help
Topic: node->SetPosition()
Replies: 8
Views: 2160

uhm.. i'am not getting it to work... is there a way to force it to (0,0,0) on some way ( just temporarly ) untill i know how it works??

Greetzz
by xtravanta
Sat Feb 05, 2011 7:57 pm
Forum: Beginners Help
Topic: node->SetPosition()
Replies: 8
Views: 2160

set all the parent's position to 0 uhm.. how ?:P iam loading it from a irr file and while looping over all of the nodes setting its postion to 0.. this will f*ck up my complete world :) becuase all of the nodes have there own position in the irr file :) and after setting it to 0 all the nodes will ...
by xtravanta
Fri Feb 04, 2011 9:02 pm
Forum: Beginners Help
Topic: node->SetPosition()
Replies: 8
Views: 2160

the player node are add manualy like this IMesh *mesh = smgr->getMesh("player.obj"); ISceneNode *node = smgr->addMeshSceneNode(mesh); and the spawn node is added using a .irr file. smgr->loadScene("scene.irr"); after this iam looping over all of the nodes to create a meta selecto...
by xtravanta
Fri Feb 04, 2011 8:45 pm
Forum: Beginners Help
Topic: node->SetPosition()
Replies: 8
Views: 2160

node->SetPosition()

Hi, Iam trying to update the position of my node.. but for some weird reason it doesn't go to the place iam telling it to go to.... example: ISceneNode *Spawn = spawnPoint[nr].Node; // the spawnpoint it needs to spawn on.. player[active].Node->setPosition(Spawn->getPosition()); Spawn->getPosition();...
by xtravanta
Wed Nov 10, 2010 5:29 pm
Forum: Beginners Help
Topic: rolling ball
Replies: 7
Views: 464

@roxaz
I looks like newton isn't compatible with irrlicht 1.7.1 :( correct me if iam wrong...

@stefbuet
it needs physics... it rolls over many obstacles with all kind of degrees..
But does this code work to make it look like the ball is rolling in a curtain direction ?
by xtravanta
Wed Nov 10, 2010 3:22 pm
Forum: Beginners Help
Topic: collision on animated mesh loaded with coppercube
Replies: 2
Views: 566

i finaly got it working.. i needed to @ it to my meta selector.. because i already added a animator to my player node.. so now it is working // loop over all of the nodes // then in a switch case ESNT_ANIMATED_MESH: selector = smgr->createTriangleSelector(((IAnimatedMeshSceneNode*)node)->getMesh(), ...
by xtravanta
Wed Nov 10, 2010 1:58 pm
Forum: Beginners Help
Topic: rolling ball
Replies: 7
Views: 464

Thanks for the response guys.. :) iam going to try it as soon as i'm home :)
by xtravanta
Tue Nov 09, 2010 11:37 am
Forum: Beginners Help
Topic: rolling ball
Replies: 7
Views: 464

rolling ball

Hi, iam trying to rotate a ball in the direction the ball is going.. but iam not sure how to do this.. maby you guys can help me out a little :) ball positioning is done with vector3df pos = vector3df(x,y,z); ball_node->setPosition(pos); And also iam wondering if the ball rolls off a curtain angled ...
by xtravanta
Tue Nov 09, 2010 11:33 am
Forum: Beginners Help
Topic: collision on animated mesh loaded with coppercube
Replies: 2
Views: 566

collision on animated mesh loaded with coppercube

Hi,, iam trying to get a collision on a animated mesh format ".x" iam getting the node like this.. smgr->getSceneNodeFromName("AnimatedMesh1"); and if iam correct you need to make a triangle selector ITriangleSelector* selector=0; selector = smgr->createTriangleSelectorFromBoundi...