Results 1 to 5 of 5
  1. #1
    MSgt. Shooter Person
    Join Date
    Mar 2011
    Posts
    69

    Default how to disable the head bobbing <SOLVED>

    is there a way to disable the camera movement (the up and down wobble) during a walk? i want to walk around my level, but keep the first person camera perfectly stabilized.


    edit:
    thanks to radomiro

    i also found a way.
    change the code in UTPawn.uc

    Change 'Bob = FClamp(Bob, -0.05, 0.05);' to 'Bob = FClamp(Bob, 0, 0);'
    and the bobbing during the walk is completely gone
    Last edited by bukkit; 04-15-2011 at 11:59 AM.

  2. #2
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Posts
    373

    Default

    that's called bobbing, you must override UpdateEyeHeight event in your player pawn class and example of its use is in UTPawn (from that you should be extending if you have bobbing, I think) and you can leave it blank or well comment all or just what you want, like only bobbing but leaving the sairt-steps stabilizator, now that I remember there is this variable "bob" that you can asign (must be 0 for zero bobbing) in a config file (so you dont need to override UpdateEyeHeight), dont remember what file...
    Last edited by radomiro; 04-15-2011 at 10:06 AM.
    do you want to learn UDK and you are a newbie?
    - first learn some basics about level edition
    - then do make Hourences Basic Game Tut. to work (dont go further till you make it work)
    - and only then learn the Mougli's lessons
    - official UDK info

  3. #3
    MSgt. Shooter Person
    Join Date
    Mar 2011
    Posts
    69

    Default

    thanks, im gonna look more into it

  4. #4
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Posts
    373

    Default

    I found it, bob is in DefaultGame.ini
    do you want to learn UDK and you are a newbie?
    - first learn some basics about level edition
    - then do make Hourences Basic Game Tut. to work (dont go further till you make it work)
    - and only then learn the Mougli's lessons
    - official UDK info

  5. #5
    MSgt. Shooter Person
    Join Date
    Mar 2011
    Posts
    69

    Default

    yep. it can also be adjusted in the UTPawn...which solved my problem. thanks a lot for your help


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.