Search Unity

Movement by script and yet does not affect others physically

Discussion in 'Physics' started by davidhfw, Oct 4, 2019.

  1. davidhfw

    davidhfw

    Joined:
    Aug 17, 2016
    Posts:
    77
    Is there a component combination that will allow a game object's movement to be directly manipulated through Transform (script) and yet does not affect others physically? In addition, it has to be affected by collision. Collider (non-trigger) + Rigidbody (isKinematic) seem to be the closest combination to achieve this, but it can still affect others physically.

    Any suggestion please?

    Thank you!
     
  2. EliJNemer

    EliJNemer

    Joined:
    Aug 3, 2019
    Posts:
    39
    You can check the collision matrix in edit>>project settings>>physics.. there are the different layers only check the layers you want to collide..