PC Potential Headsway Fix Found

Discussion in 'TSW General Discussion' started by londonmidland, Oct 8, 2025 at 1:15 PM.

  1. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,570
    Likes Received:
    19,579
    Hey guys

    A bit of a long post, however I think I may have potentially found a nice fix for the awkward head sway movement and its animations in TSW.

    Currently, when you are in the cab of a train, the train moves around the player/head camera, in which this camera itself is completely static. This creates very sudden and jerky movements, leading to sudden, unnatural swaying effects and movements seen. Particularly when going over track joints or crossing junctions.

    The settings I will post below will enable secondary head sway movements, which interacts simultaneously with train movement/its suspension. This creates more dynamic and *much* smoother head sway effects.

    From my testing, it seems to be a massive improvement, however I’d like to see what you guys think of it. :)

    PC Players, please enter the following in your engine.ini file:

    EnableUprightCompensation=1

    ts2.CameraMotionSway.HeadAdjustmentSpeed=0.01
     

    Attached Files:

    • Like Like x 10
    • Helpful Helpful x 5
  2. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    2,219
    Likes Received:
    2,197
    Just added them and will see how it helps that jerky movement.
     
    • Helpful Helpful x 1
  3. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    20,517
    Likes Received:
    41,646
    Ditto, will add later.
     
    • Helpful Helpful x 1
  4. Thorgred

    Thorgred Well-Known Member

    Joined:
    Jun 8, 2018
    Messages:
    901
    Likes Received:
    522
    I have added them too
     
    • Helpful Helpful x 1
  5. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    2,219
    Likes Received:
    2,197
    Gave it a try on the 150 and seemed to be better.
     
    • Helpful Helpful x 2
  6. hyperlord

    hyperlord Well-Known Member

    Joined:
    May 20, 2019
    Messages:
    1,497
    Likes Received:
    1,542
    Aaah nice this sounds really promising. Will implement it in my ini today and give feedback.

    How is the headsway IRL? I might think those cool driver seats (speaking of DB) compensate a lot?

    Would it be possible, to fake the missing lateral movement of the loco with those camera hacks, too? :)

    [​IMG]
     
  7. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,570
    Likes Received:
    19,579
    I forgot to mention - my in game head sway setting in the menu UI is set to 100%.

    The head motion and sways feel incredibly smooth and silky looking, as the camera can freely move in any direction it wants.

    Before, it felt very restrictive and choppy feeling, as it seemed to restrict the camera to only react to the train suspension/motion, and not the players' head.
     
    Last edited: Oct 8, 2025 at 11:14 PM
    • Like Like x 2
    • Helpful Helpful x 1
  8. Anthony Pecoraro

    Anthony Pecoraro Well-Known Member

    Joined:
    Dec 11, 2016
    Messages:
    3,850
    Likes Received:
    4,457
    I don't notice any difference.
     
  9. Thorgred

    Thorgred Well-Known Member

    Joined:
    Jun 8, 2018
    Messages:
    901
    Likes Received:
    522
    to me it seems an improvement
    and I still do not have the notion to put it back from 100% as i had it before this on 70%
    it feels more fluid / smoother indeed :)
     
    Last edited: Oct 9, 2025 at 2:49 PM
    • Like Like x 1
    • Helpful Helpful x 1
  10. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,570
    Likes Received:
    19,579
    A bit of an explanation as to what this setting does and why it improves the feel of motion and head sway:

    So by default, the EnableUprightCompensation setting is set to 0.

    What does this is it clips the players head. whilst inside the cab of the train, to the outside terrain and remains level with it. This means that your head isn't actually moving, as it is completely static. You just have the train (cab) movement moving around a static camera.

    When EnableUprightCompensation is set to 1, this adds secondary head movement. So now your head is actually moving and reacting simultaneously with the movement of the train, and not with the outside terrain. You sway from side to side and bounce up and down. It looks really nice and it feels like you aren't always constantly stuck in one static position.
     
    • Like Like x 2

Share This Page