Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Resolved My Character stopped moving properly

Discussion in 'Scripting' started by Koyomin28, May 15, 2024.

  1. Koyomin28

    Koyomin28

    Joined:
    Jan 15, 2018
    Posts:
    43
    I have a character that only uses root motion and blend trees to move around, it was working as intended, until a few hours ago when it stopped behaving normally.
    My character uses a blend tree with the animations for locomotion, and the position of the character controller is all driven by the root motion of the animation, the problem is that it was all correctly assembled, still is, I wasn't even with my character script open, I was playing with some slow-motion for bullet impacts, and for no reason, my character stopped moving forward. I already checked my blend trees, my Input system and also my character script, it's all the same, but i getting this strange behaviour. Capturar.PNG Captura2.PNG Capturar3.PNG
     
  2. Koyomin28

    Koyomin28

    Joined:
    Jan 15, 2018
    Posts:
    43
    PS. I already tried to reload the scene, reopen the project, nothing seems to work
     
  3. Koyomin28

    Koyomin28

    Joined:
    Jan 15, 2018
    Posts:
    43
  4. Koyomin28

    Koyomin28

    Joined:
    Jan 15, 2018
    Posts:
    43
    Update: I am debugging my code trying to find the cause of the glitch, there's nothing wrong with my code, but when I disable my character controller, the movement starts to work again
     
  5. Koyomin28

    Koyomin28

    Joined:
    Jan 15, 2018
    Posts:
    43
    what are you talking about?
     
  6. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,697
    Are you seeing any errors in the console?
     
    Koyomin28 likes this.
  7. Koyomin28

    Koyomin28

    Joined:
    Jan 15, 2018
    Posts:
    43
    Update: My god i feel so dumb right now, it was a dam scope. I made a shadergraph for it yesterday, attached it to a plane inside the scope, and just forgot to delete the collider of the plane. the collider was hitting my character controller and causing the strange behavior. i just lost half a day of work just because of a collider that I didn't even realize existed
     
  8. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,697
    Yeah. This sort of thing happens a lot in software development.
     
    Koyomin28 likes this.