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

Kinematic rigidbody pushes a non kinematic rigidbody?

Discussion in 'Physics' started by Shadowing, Aug 19, 2019.

  1. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,647
    I thought a kinematic rigidbody can't push a non kinematic rigidbody?

    I have this issue where a melee unit hits a character with his weapon that is kinematic and it pushes the character back?
     
    brainwipe likes this.
  2. Grizmu

    Grizmu

    Joined:
    Aug 27, 2013
    Posts:
    131
    Kinematic rigidbody can and will collide with non-kinematic rigidbodies. If you don't want this to happen, but still want to detect when they come in contact, you'll have to use triggers, raycasts or queries.

    Below is a table where you can see which pairs are causing a collision event, and what you can use to just get trigger messages.

    2050-interactionmatrix[1].png
     
    brainwipe likes this.