Im loading two models from .x files ( a person and a oddly shaped building) and they are getting collision ( dbObjectCollision() ) before they even come close to touching.
I can somewhat correct it with dbSetObjectRadius() but then the person model can run through walls on parts of the building and still not come close to touching the building on another part. dbSetObjectRadius() seems to make square collision boundries but the building isn't square. Is there a better fix for this or am I missing something?
Code loading the models:
dbLoadObject (cFilename, objectnumber);
dbScaleObject(objectnumber, scalex, scaley, scalez);
dbRotateObject(objectnumber, rotatex, rotatey, rotatez);
dbPositionObject(objectnumber, x, y, z);