[Help] Pitch and Yaw Range

Discussion in 'Mod Support' started by emraldis, November 16, 2014.

  1. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Just a question, but does this affect how far the Aim bone can turn, or does it change how far off of the aim bone the weapon can be shot?
  2. elodea

    elodea Post Master General

    Messages:
    1,694
    Likes Received:
    3,040
    the latter. 90 value range = 180 true range.
  3. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Ok, so is there a way I can set how far the bone is able to turn? Or is that defined solely by animation?
  4. elodea

    elodea Post Master General

    Messages:
    1,694
    Likes Received:
    3,040
    That would be yaw range
  5. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    wait, what? Pitch and yaw are different rotational vectors, they will both affect the same thing... either the aim bone or the difference in angle between the aim bone and the shot fired.
  6. elodea

    elodea Post Master General

    Messages:
    1,694
    Likes Received:
    3,040
    When you said turn, i guess i wrongly assumed you meant x rotation. If you want z rotation, then pitch range as well ofcourse.

    It seems that what you're trying to figure out is why your model turret isn't turning even though it's firing from that angle? Why that is, i couldn't tell you. I always assumed it was a problem with rotated bones or some problem with the 3ds max to .papa pipeline or some such, unless someone figured it out already? Maybe i wrongly assume this point.

    But to answer your question, my understanding is that the engine automatically rotates the bone as per the rotation axis defined in anim_tree, and yaw(x)/pitch(z) range and rate.

    yaw and pitch are not phantom angles within which the aim bone can fire, but the range in which the aim bone can be rotated in either direction.

    If you want those kind of angles, you would be using "firing_standard_deviation": value instead
  7. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Ok that helps. I'm just getting weird things happening with some of my units aiming. For example the excalibur (Big railgun spaceship if you're not familiar with my mod) doesn't like pointing towards its targets when it shoots despite having its aim bone as its root bone, I have to adjust the yaw and pitch to make it shoot at all, and then it aims slightly out of the side of the gun sometimes (as you can see in the mod right now if you've played it). Also the anti-tactical missile turret won't turn and face the tactical missile, which is weird, because it's currently using the flak cannon model and animtree.
  8. mgmetal13

    mgmetal13 Active Member

    Messages:
    203
    Likes Received:
    151
    I think the Excalibur issue is an issue with the engine. If you look closely at other units that don't use a rotating turret, they do the same thing.
  9. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Yeah, I'm just trying to minimize it... : /
  10. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    I don't think there is a unit without a turret, other than the boom bot. :p
  11. mgmetal13

    mgmetal13 Active Member

    Messages:
    203
    Likes Received:
    151
    The fighter and the sxx.
  12. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Touché. :p

    Except it doesn't really matte with the fighter as it just fires anywhere, also the bomber doesn't have a turret. =o

Share This Page