whats the command to create a "pivot"

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
dgrafix
Posts: 116
Joined: Sun Nov 18, 2007 2:36 pm

whats the command to create a "pivot"

Post by dgrafix »

How do i create a pivot (an invisible non-geometry object to attach other objects to)
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com :)
Ion Dune
Posts: 453
Joined: Mon Nov 12, 2007 8:29 pm
Location: California, USA
Contact:

Post by Ion Dune »

Just use an empty scene node:

ISceneManager::addEmptySceneNode(...)
dgrafix
Posts: 116
Joined: Sun Nov 18, 2007 2:36 pm

Post by dgrafix »

Thats what i thought, but i get exceptions when i attempt to get it's rotation etc:
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Then you probably did something wrong :wink:
dgrafix
Posts: 116
Joined: Sun Nov 18, 2007 2:36 pm

Post by dgrafix »

Odd, this test function returns a 0x0 with emptyscenenode, but returns an address using addcubescenenode

//AddPivot
irr::scene::ISceneNode * AddPivot(irr::scene::ISceneNode * parent)
{
return irrSmgr->addEmptySceneNode(parent);
}

:?
C++/Irrlicht Noob pl3se B p4t1ent.
Visit www.d-grafix.com :)
Post Reply