Another problem - no map collision

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
lor
Posts: 22
Joined: Sat Aug 27, 2005 2:07 pm

Another problem - no map collision

Post by lor »

firstly, the code:

Code: Select all

bool gotmap_bot = scene_mgr->getSceneCollisionManager()->getCollisionPoint(wektor_patrzenia,map_selector_bot, mapcollision,   dummy);
i do the same with gotmodel_bot and modelcollision

Code: Select all

mapdistance = my_node->getPosition().getDistanceFromSQ(mapcollision);
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 ??
lor
Posts: 22
Joined: Sat Aug 27, 2005 2:07 pm

Post by lor »

hmm no answers, so I guess you don't know the reason :roll: 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 ??
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

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.
Image
Post Reply