How i can make player to dont go inside walls
An idea i have is to create a class that draw an model, in that constructor i will add also some informations about model like ID-NAME-Position.
So i will create an function that will check if
if ( Abs(Player.XYZ - Wall1.XYZ) < 500)
return;
But as you understand this is not possible when you have 100 objects, you cant have 100 ifs.
So any idea to solve this problem? thanks.