I'm doing a shooting "game", not actually a game yet, BTW i've got a node, which is map, then i have the bullet node. Yes, the collision works fien, no problem with that, but how i check if the bullet hits the map, for deleting the bullet.
I have done the collision like this:
Code: Select all
scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(
selector, node, core::vector3df(3,5,3),
core::vector3df(0,-2,0), core::vector3df(0,0,0));
selector->drop(); // As soon as we're done with the selector, drop it.
node->addAnimator(anim);
anim->drop();