1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  3. We’re giving 2017.1 beta testers a chance to win t-shirts and a Nintendo Switch. Read more on the blog.
    Dismiss Notice
  4. We want to know how you learned Unity! Help us by taking this quick survey and have a chance at a $25 gift card
    Dismiss Notice
  5. Are you an artist or level designer going to Unite Europe? Join our roundtables there to discuss artist features.
    Dismiss Notice
  6. Unity 5.6 is now released.
    Dismiss Notice
  7. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice

Prevent Rigidbodies from pushing each other

Discussion in 'Physics' started by LightStriker, Jun 19, 2017 at 3:44 PM.

  1. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,189
    Nobody appear to have the answer to this one, but it's quite important. In short, how to replicate Dark Souls or Bloodborne character collisions.

    Let's assume a system with an unknown number of rigidbody, each moving around at different unknown velocities driven by gravity, physic or by animation. Some rigidbody cannot push each other, while other can.

    A character can NEVER push another character. A character never transfer energy/impulsion/velocity to another. However, they still collide with each other. A character can be pushed by other rigidbody like an explosion, a trap, attacks, etc. A character can push other rigidbody like debris or breakables.

    How to do that?

    If it's not clear what we want, I'll go record a video in Dark Souls.
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    1,162
  3. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,189
  4. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,189
    Here's an example of Dark Souls inter-character collisions;



    The player(s) is moving forward, but it never push another character. Works no matter the number of character around. Two character can run towards each other, and they still cannot push each other.
     
  5. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,189