Search Unity

[HelpWanted] After adding Rigidbody the object stops moving

Discussion in '2D' started by rossyruseva, Oct 19, 2021.

  1. rossyruseva

    rossyruseva

    Joined:
    Sep 9, 2021
    Posts:
    21
    So I'm following again a lecture. On the script, I have rows for horizontal and vertical movements of the object and they are working fine. After adding the rigidbody to the object and starting the game I can not move the object. Any idea why is that and how to fix it?
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,500
    There's absolutely no way for us to know what's wrong.

    Follow this lecture in more detail if theirs is working?
     
  3. rossyruseva

    rossyruseva

    Joined:
    Sep 9, 2021
    Posts:
    21
    Tried it like that a few times - nothing. Even starting everything from the top. When pressing w - s for horizontal and a- d for left and right, the object is not visually moving but the position is changing in the inspector
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,500
    That's all well and good but nobody can debug a rough description. We don't have images, video or any code showing what might be wrong. We don't even know what components are involved.