Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

UNİTY2D KNOCKBACK

Discussion in '2D' started by timucinc2, May 1, 2020.

  1. timucinc2

    timucinc2

    Joined:
    Apr 5, 2020
    Posts:
    3
    İ am working on a platformer game and i need added a player knockback with rigidbodies (rb.AddForce(new Vector2(10,10), ForceMode2D.İmpulse)); but y axis working x axis is not working idk why can you help me please?
     
  2. Jenifer_Jane

    Jenifer_Jane

    Joined:
    Jan 24, 2017
    Posts:
    69
    check your freeze positions on rigid body
     
  3. timucinc2

    timucinc2

    Joined:
    Apr 5, 2020
    Posts:
    3
    x axis is not locked i checked it.
     
  4. Dedi6

    Dedi6

    Joined:
    Jan 20, 2019
    Posts:
    119
    Yesterday I answered your question on the thread I opened. Please read it.
     
  5. timucinc2

    timucinc2

    Joined:
    Apr 5, 2020
    Posts:
    3
    I couldn't find your thread can you send me a link please?
     
  6. Dedi6

    Dedi6

    Joined:
    Jan 20, 2019
    Posts:
    119
    timucinc2 likes this.