Search found 6 matches
- Sat Mar 14, 2015 1:43 pm
- Forum: Beginners Help
- Topic: Brush Entity Position Problem
- Replies: 11
- Views: 1423
Re: Brush Entity Position Problem
Oh, I see the door doesn't have the origin key set. In that case you need to use the transformed box. That gives me the same garbage like values: doorNode = smgr->addMeshSceneNode(doormesh); vector3df doorOrigPos = doorNode->getTransformedBoundingBox().getCenter(); printf("D...
- Sat Mar 14, 2015 12:23 am
- Forum: Beginners Help
- Topic: Brush Entity Position Problem
- Replies: 11
- Views: 1423
Re: [SOLVED] Brush Entity Position Problem
If you need the entity's position, you can use the getGroup function as is done later in the example for the start position. I tried that but I still get all 0's. And I guess I got excited for nothing because although the values weren't 0 they still were just garbage values. I checked the values ag...
- Fri Mar 13, 2015 2:40 am
- Forum: Beginners Help
- Topic: Brush Entity Position Problem
- Replies: 11
- Views: 1423
Re: Brush Entity Position Problem
I have tried writing down the coords of where the door is supposed to be then using setPosition() to pass it manually and everything works perfect. I set the position right after I added the node to the SMGR. (but of course, I need a dynamic way for it to load it from the map and not rely on supplie...
- Fri Mar 13, 2015 1:38 am
- Forum: Beginners Help
- Topic: Brush Entity Position Problem
- Replies: 11
- Views: 1423
Re: Brush Entity Position Problem
I tried that and nothing changed.
Does the same thing as the pic in the op.
Code: Select all
printf("DOOR: X:%f Y: %f Z:%f\n", doorNode->getAbsolutePosition().X, doorNode->getAbsolutePosition().Y, doorNode->getAbsolutePosition().Z);
- Fri Mar 13, 2015 12:37 am
- Forum: Beginners Help
- Topic: Brush Entity Position Problem
- Replies: 11
- Views: 1423
Re: Brush Entity Position Problem
But the example does it like this ISceneNode *door = smgr->addMeshSceneNode(doormesh); //this would be the end of my function //... //This is how the example gets the position, the same why I'm trying to. const vector3df doorpos = door->getPosition(...
- Thu Mar 12, 2015 10:31 pm
- Forum: Beginners Help
- Topic: Brush Entity Position Problem
- Replies: 11
- Views: 1423
Brush Entity Position Problem
Hey everyone this one has been stumping me the past few days and I just cant seem to figure it out. So I followed the example at: http://sourceforge.net/p/irrlicht/patches/211/ scroll down some and you'll see the zip brush ent v2 thats what I'm following. So I downloaded that and ran it and the door...