• Camera tilted after vaulting


    McLaughMan
    • Pending
      Bug Type: Graphics

    The camera appears to be tilted after vaulting up some of the grabbing plywood things (whatever they are called).

    Current fix for the bug is to die and respawn.

    Tilted cam \/

    TILTED.thumb.png.39e60670839e97e74dd4d74af402e55f.png

    Non tilted cam \/ (plus my boy Jerry photobombing, everyone say hi to jerry)

    NONTILTED.thumb.png.7b7b1eb19e1129d5a7b3f05321680f6f.png

     

    (FOR THE DEVS: add a check for camera rotation when the player is not in an animation, or when they are in the idle, standing, running, walking, etc. animations. If they are in any of these animations, just have it correct it, or just lock camera rotation for any of these lol idk.)

    Something like this may work.  (forgive my bad C# skills, haven't done much in unity recently lol)

    Not the exact code needed, but a good reference. <3

    if(anim.animator.GetCurrentAnimatorStateInfo(0).IsName("ANIMATION NAME")){

    Then get camera/parent, blah blah blah you guys can figure this out, haven't seen much of the camera coding so.

    Vector3 v = transform.rotation.eulerAngles;

    Quaternion finalRot = Quaternion.Euler(xRotation, 0, rotZ);

    }





    User Feedback


    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now