View Full Version : is it possible to
poopster101
02-11-2008, 03:19 PM
make a door 'swing' open like it does in real life. i tried the fuc_door rotating but aht rotates it around its central axis and i want it to rotate around an edge.
any suggestions?
Youme
02-11-2008, 03:26 PM
You make the 'centre' of the func_door the edge
There is a little circle in the middle of it (2d view) drag that to the point you wan't it to rotate around
(I think this is right, if not I'm completely loosing it)
poopster101
02-11-2008, 03:30 PM
yea i already tried that and yea it works but now if someone opens the door, then i have that pesky no_draw brush sticking out so people will run into it (the brush is acting as an invisible wall) if the door is 'open' or being 'opened'
Youme
02-11-2008, 03:35 PM
.... nodraw brush? if its not part of the door, or serving any cause, why is it there?
poopster101
02-11-2008, 03:38 PM
to act as the func_door_rotating entity because a door model cannot become a func_door_rotating
Immortal-D
02-11-2008, 03:39 PM
Ahh, I see. You have two choices. Either texture the func_rotating as a door, or make it smaller, so it fits within the door model. I prefer the former, but it's all good.
poopster101
02-11-2008, 03:43 PM
see this is problem. i put the no_draw to glass so it can be seem in-game for experimenation purposes. you can see how hte 'glass' would swing out and cause interferance http://img145.imageshack.us/img145/5959/doorgp2.jpg
Youme
02-11-2008, 04:00 PM
You need to move the circle from the middle to the edge, the circle is the axis of rotation.
trackhed
02-11-2008, 04:06 PM
correctamundo,
the axis of rotation is otherwise known as the origin.
see the func_door_rotating is almost just what you want, but i believe you have the wrong idea about how it functions.
i believe what you want is prop_door_rotating (http://developer.valvesoftware.com/wiki/WiseDoor)
poopster101
02-11-2008, 04:06 PM
ohhhhhhhhhhhh
i understand.
and it works perfectly
now i know
vBulletin® v3.7.0 Release Candidate 2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.