Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Urgent help with Rigidbody2D!!! it suddenly stops velocity

Discussion in '2D' started by fosmark13, Mar 13, 2017.

  1. fosmark13

    fosmark13

    Joined:
    Feb 16, 2015
    Posts:
    91
    hi i have a character controller that was working fine in its movement but suddenly it started to stop in mid air, this is with no reason since the code was working fine and actually if i open a diferent scene it still works fine so i don't know why is unity doing this, checking the rigidbody2d component i saw that its Y speed is reseting to zero randomly whenever the player is not grounded, doesn't matter if he is jumping or falling or whatever, this is super odd because it already happen to me one time and suddenly it was fixed alone, but this time the wrong behavior is there and i can't fix it!!!, the code works fine in a diferrent scene and i don't have any root motion activated and like a weird fact if a put the player prefab twice in the scene one of the prefab instances actually works fine and the other keeps reseting its y speed. please some help would be great