or, another more "accurate" collision function:
Code:
bool collision(ISceneNode* one, ISceneNode* two) {
if(one->getBoundingBox().intersectsWithBox(two->getBoundingBox())) {
return true;
return false;
}
havent tested this one but it should work.
Yeah, actually this always returns "true". I would like to know what`s wrong with it too (if possible).
Anyway, this tut is really useful, since it helped me understand some basic stuff. "Working and learning" seems to be a good startegy





