Tremulous Forum

Mods => Modding Center => Topic started by: rotacak on September 20, 2009, 12:03:43 am

Title: Space between buildings (aliens)
Post by: rotacak on September 20, 2009, 12:03:43 am
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:

(http://img200.imageshack.us/img200/1147/shot0033fg.jpg)

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?
Title: Re: Space between buildings (aliens)
Post by: 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...
Title: Re: Space between buildings (aliens)
Post by: mooseberry on September 20, 2009, 01:11:13 am
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.
Title: Re: Space between buildings (aliens)
Post by: rotacak on September 20, 2009, 02:37:01 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?