# func_door_rotating

Discussion in 'Mapping Questions & Discussion' started by TheDarkerSideofYourShadow, Sep 30, 2008.

Messages:
792
Positive Ratings:
144
Just wondering if it is possible to have a door rotate around an axis that is not X, Y, or Z? Basically, I have a door that is on in incline, and I want it to rotate open (think cellar doors). Thanks

2. ### EarlL6: Sharp Member

Messages:
284
Positive Ratings:
37
I really doubt it. It's a MUCH more complicated transformation to rotate around an arbitrary axis rather than an x-, y-, or z-, axis. (7 transformation matrices as opposed to 1). They probably didn't code support for anything but the Z-axis into the entity.

Your best bet is to use an animated model.

3. ### What Is SchwaL6: Sharp Member

Messages:
375
Positive Ratings:
221
You can rotate around the fourth dimension, time. However, this tears open wormholes in your displacements and hammer can't handle the sewing to get them back together.

Seriously though... by using a combination of the x, y, and z axis coordinates you can move the brush through space in any way you want. You're just gonna have to fiddle with it.

4. ### aaArmadillo of DoomGroup Founder, Lover of Pie

Messages:
949
Positive Ratings:
615
This is easier than you might think. Start with the door straight vertical, and have it move side to side (horizontal). Now rotate the door into the desired position. Provided you keep your origin straight, you wind up w/ a slanted door that opens horizontally.

Messages:
792
Positive Ratings:
144
Yeah, the door isn't straight. The top end is about 32 units higher than the bottom end.

Earl, isn't it reducible down to a single matrix, but it just consists of a bunch of horrible entries like h-x/2*z? At least I remember it being something similiar to this in computer graphics. Also, it was possible to do this back in 3.4 Hammer.

Guess I'll just level it out.

6. ### FaTonyBanned

Messages:
902
Positive Ratings:
160