and also I do the same with modelcollision. What's the problem you may ask.. The problem is such, that while distance from another model is returned correct, distance from map looks a bit strange : / - for example. Model stays behind the wall, distance from it is 50 and from wall 10000000 : / Can anybody explain it ??
hmm no answers, so I guess you don't know the reason I wonder if it is possible that the trouble couses mesh ?? I modeled it in 3ds max and exported. Is it possible that it doesn't work correctly ??
this is happening because the line you're testing for collision in getCollisionPoint is returning no collision. Without more detail, can't give any more specifics than that.