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.
problem with collision detection in bsp maps
problem with collision detection in bsp maps
ru guo ni yao ai, ni jiang bu hui shi qu