collisionManager->getCollisionResultPosition(..);paramete

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
bongse1
Posts: 14
Joined: Mon Jul 26, 2010 11:41 am

collisionManager->getCollisionResultPosition(..);paramete

Post by bongse1 »

triangle3df triOut;
vector3df finalPos;
bool bFalling;
ISceneNode* sd ;

collisionManager->getCollisionResultPosition(
mainCastleSelector ,
this->mHero->getPosition(),
vector3df(100.0,100.,100.),
vector3df(0.,0.,0.),
triOut,
finalPos,
bFalling,
*sd, <--------------problem
0.0005,
vector3df(0.0,-0.001,0.0));

what is it?And how should I supply 8th parameter of above that I marked?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Just remove the star ('*') in front of the element. It will return the scene node if a collision happened with it.
Post Reply