Search Unity

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,289
    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?
     
  2. Griz

    Griz

    Joined:
    Aug 27, 2013
    Posts:
    111
    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