Search Unity

rotating is glitchy

Discussion in 'Visual Scripting' started by jkjkrules, Sep 18, 2022.

  1. jkjkrules

    jkjkrules

    Joined:
    Jan 2, 2016
    Posts:
    16
    I have tried multiple ways to rotate using e and q but every one seems to be wonky some times you will have to press the button a few time other times it goes and turned back then other times it rotates fine.
     

    Attached Files:

  2. munchmo

    munchmo

    Joined:
    May 20, 2019
    Posts:
    85
    I can't speak to what's going wrong with your graph but I do have a suggestion. You may want to change the way you do this. Instead of attaching the rotation directly to the events, you should set some Booleans to true and/or false on press/release. Then on update you do the actual rotation if those booleans are set to true.
     
    jkjkrules likes this.
  3. jkjkrules

    jkjkrules

    Joined:
    Jan 2, 2016
    Posts:
    16
    I don't understand why it helped but that smoothed it out a bunch
     
  4. REDACT3D_

    REDACT3D_

    Joined:
    Nov 8, 2020
    Posts:
    222