func_door_rotating

TheDarkerSideofYourShadow

L10: Glamorous Member
Apr 12, 2008
792
286
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 :)
 

Earl

L6: Sharp Member
Dec 21, 2007
284
38
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.
 

What Is Schwa

L6: Sharp Member
Jan 13, 2008
375
445
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.
 

Armadillo of Doom

Group Founder, Lover of Pie
aa
Oct 25, 2007
949
1,228
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.
 

TheDarkerSideofYourShadow

L10: Glamorous Member
Apr 12, 2008
792
286
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.