i am getting selected scenenode from this function..
selectedSceneNode = smgr->getSceneCollisionManager()->getSceneNodeFromCameraBB(cam);
//for testing i am setting light off
if ( selectedSceneNode )
{
selectedSceneNode->setMaterialFlag(video::EMF_LIGHTING, false);
}
but when i scale my nodes like
node->setScale(vector3df(10,10,10));
this function does not detect this node.
what to do.....
scaled node collision problem
-
darkunderlord
- Posts: 1
- Joined: Wed Apr 22, 2009 2:46 pm
anyone figure this out? I'm seeing the same thing with my scaled nodes. They sort of work but there's also problems with the floor planes I have below causing bounding box problems or something.
Others have said something similar to what I've seen and different SVN's aren't helping me. I'm trying the triangleselector way now, but these objects are stationary. It's a kind of chess game where you click on the piece and then the square you want to move to.
ugh. Irrlicht rocks though!
Others have said something similar to what I've seen and different SVN's aren't helping me. I'm trying the triangleselector way now, but these objects are stationary. It's a kind of chess game where you click on the piece and then the square you want to move to.
ugh. Irrlicht rocks though!
Is the bbox scaled as soon as node->setScale is called? Or is it scaled when the node is next updated? I've certainly had issues where I'd have to call node->OnAnimate(0) or node->updatedAbsolutePosition() in order to then get the correct bbox back from a node directly after scaling.hybrid wrote:No, bbox is automatically scaled. Only vertex changes would require a manual update.
