problem with collision detection in bsp maps

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
rogerdv
Posts: 93
Joined: Wed Aug 27, 2003 4:20 pm

problem with collision detection in bsp maps

Post by rogerdv »

Im trying to implement collision detection in BSP maps, so my character doesnt goes through walls. But my game is RPG, not FPS, so, I attach the collider to the player node, not to the camera:

scene::ISceneNodeAnimatorCollisionResponse* collider = smgr->createCollisionResponseAnimator(
selector, amesh_node, vector3df(30,50,30),vector3df(0, levelMesh ? -100.0f : 0.0f,0), 100.0f,
vector3df(0,40,0), 0.0005f);
amesh_node->addAnimator(collider);
collider->drop();

selector is a TriangleSelector associated (and working 100%) to levelMesh, a BSP mesh previously loaded.
But anyway, I can move the node freely through walls.
ru guo ni yao ai, ni jiang bu hui shi qu
Post Reply