Search Unity

Question Two Gameojects not colliding

Discussion in 'Physics' started by Turbsi, Mar 3, 2023.

  1. Turbsi

    Turbsi

    Joined:
    Apr 13, 2022
    Posts:
    1
    The player goes through the gameobject and colliding with it.

    Here is a video to show my issue:

    The white is the player and the gameobject im trying to collide with is the red.


    Thanks in advance!
     
  2. dogmachris

    dogmachris

    Joined:
    Sep 15, 2014
    Posts:
    1,375
    Kinematic Rigidbodies won't collide with other objects, but you can use a Character Controller or write custom code with a Kinematic Rigidbody to achieve collision without being affected by physics.
     
    MelvMay likes this.
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,463
    Kinematic rigidbodies don't have a collision response, that's the whole point of them. You'd use physics queries to detect contacts and perform your own responses.

    Use a Dynamic rigidbody if you want an automatic collision response.