Code: Select all
vector3df ColPoint;
triangle3df CT;
line3df checker(P.X,10000.0f,P.Z,P.X,-1000.0f,P.Z);
bool cFound=Core.smgr->getSceneCollisionManager()->getCollisionPoint(checker,Core.selector,ColPoint,CT);
The problem is, that getCollisionPoint() not allways return true, when i'm ABSOLUTELY sure, that there IS a collision.
What possibly could be the problem?
P.S. Now i'll try to make a custom funcion from CTerrainSceneNode::getHeight(f32 x, f32 z) in order to check the stuff by hand.