Sideways doors moving in the same direction.

Discussion in 'Mapping Questions & Discussion' started by Maestr0d, Oct 18, 2016.

  1. Maestr0d

    Maestr0d L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    So ive been trying to make two doors that open by moving apart sideways. Im a little bit confused about the pitch yaw roll thing, since if i use 90 0 0 and -90 0 0 one of the doors goes up one goes down, 0 90 0 one of the doors moved forward the other goes backward, but if i use 0 0 90 and 0 0 -90 both doors move sideways but in the same direction.
     
  2. Maestr0d

    Maestr0d L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    NVM fixed it by using the black circle to direct the doors.
     
  3. theatreTECHIE

    aa theatreTECHIE Yet another Techie for the net...

    Messages:
    396
    Positive Ratings:
    416
    Try the angle 0 0 0 and 0 180 0. I'll explain what pitch yaw and roll are later if someone else doesn't first, as I need to go somewhere now.
    EDIT: Ninja'd, nice work.
     
  4. Maestr0d

    Maestr0d L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Thanks though!
     
  5. theatreTECHIE

    aa theatreTECHIE Yet another Techie for the net...

    Messages:
    396
    Positive Ratings:
    416
    In case you (or anyone else) were still wondering, this is how the pitch, yaw and roll modifiers work:
    The three modifiers are applied in the order they appear - that is pitch first, yaw second, and roll last.

    An object starts off by pointing in the direction 0 0 0, which is along the x-axis (In the top-down view it's towards the right).

    The pitch modifier is then applied, which rotates the object around its y-axis (appears green in the hammer 3D view). A good way to picture this is if a plane is your prop, with the nose pointing in the direction 0 0 0, a negative pitch will make the nose of the plane point up, while a positive pitch will make the plane point down.

    The yaw modifier is applied second, and rotates it around the z-axis of the map (appears blue in the hammer 3D view at the origin, points up). In our analogy of the plane, this will determine where the plane is heading (i.e. the plane's bearing).

    The roll modifier is applied last, and rotates the object around its own x-axis after the pitch and yaw have been applied (appears red in the hammer 3D view). This is as if our plane, once tilted and heading in a particular direction, rolls its body so that its wings rotate about its body, exactly like a barrel roll.

    Doors work in the way that they move in the direction that their imaginary plane moves. So pitch makes them move up and down, yaw changes the direction looking from top-down that they move, and roll has no effect, as it won't change the direction that the plane is going.

    Here's a picture that outlines what I've just said:
    [​IMG]
    (Note that positive numbers in hammer will make it move in the direction that these arrows point, which obeys the right-hand rule for any of the physics nerds that are out there)
     
  6. Maestr0d

    Maestr0d L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    That clears out a lot of things, thank you!