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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Prevent Rigidbody2D push other rigidbodies [not totally ignore]

Discussion in 'Physics' started by Comolokko, Aug 11, 2015.

  1. Comolokko

    Comolokko

    Joined:
    Jul 24, 2014
    Posts:
    28
    Hello,
    I want to make rigidbodies not to push eachother, I want them to act as wall to eachother. How can I do it?
     
  2. artaka

    artaka

    Joined:
    Feb 19, 2013
    Posts:
    128
    If you don't want them reacting to other objects or physical forces, you can set the IsKinematic flag on.
     
  3. Comolokko

    Comolokko

    Joined:
    Jul 24, 2014
    Posts:
    28
    But if i set the isKinematic, then player can't jump and can move in air.