News:

Come Chat with us live! Learn how HERE!

Main Menu

Space between buildings (aliens)

Started by rotacak, September 20, 2009, 12:03:43 AM

rotacak

Hi, when I add new building for aliens, everything is ok when I build it on floor. But if I will build it on ceiling or wall, then between building and wall/ceiling is big space or building is partialy in wall/ceiling.

Same like with baricade:



How I can fix that? In bg_misc.c is "vec3_t mins;", "vec3_t maxs;" and "float zOffset;". I don't understand what for is offset. Is possible to fix it with these values?

David

All bounding boxes are axis aligned, so enable drawBBOX and it'll show the model massively out of alignment with the box.  There's a reason everything that can be built on walls is a cube...
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

mooseberry

Didn't benmachine do something similar along time ago? I can't remember specifically but I thought almost all buildings could be on ceiling and walls.
Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

मैं हिन्दी का समर्थन

~Mooseberry.

rotacak

Quote from: David on September 20, 2009, 12:40:36 AM
All bounding boxes are axis aligned, so enable drawBBOX and it'll show the model massively out of alignment with the box.  There's a reason everything that can be built on walls is a cube...
I know, but it's same with acid and hive and they are ok. How to fix others too?