private bool CheckCollisionPossibility(float delta,bool checkNext,DynShelterModule cmp) { if(checkNext)//Checks with nexts { if(cmp == _nextModule && _lockNext) return false; if(_size == cmp.GetSize())//Meme taille { return Contact(delta,AR,true,AV,true,cmp,checkNext); } else if(cmp.GetSize() >= _size && cmp.IsLastEnd() ) { return Contact(delta,AR,true,AR,false,cmp,checkNext); } else return false; } else//Checks with prevs { if(cmp == _prevModule && _lockPrev) return false; if(_size == cmp.GetSize() /*|| (cmp.GetModuleType() != FunctionConf_Dynshelter.ModuleType.bloc && _size <= cmp.GetSize())*/)//Meme taille { return Contact(delta,AV,true,AR,true,cmp,checkNext); } else if(cmp.GetSize() >= _size && cmp.IsFirstEnd()) { return Contact(delta,AV,true,AV,false,cmp,checkNext); } else//--------------------//pas meme taille { return false; } } }