func_door_rotating

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

  1. TheDarkerSideofYourShadow

    TheDarkerSideofYourShadow L10: Glamorous Member

    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. Earl

    Earl L6: 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 Schwa

    What Is Schwa L6: Sharp Member

    Messages:
    375
    Positive Ratings:
    220
    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. Armadillo of Doom

    aa Armadillo of Doom Group 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.
     
  5. TheDarkerSideofYourShadow

    TheDarkerSideofYourShadow L10: Glamorous Member

    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. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    Read my workaround of func_rotating :)