Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

When to set "Is Kinematic"?

Discussion in 'Scripting' started by GoodNight9, Dec 22, 2015.

  1. GoodNight9

    GoodNight9

    Joined:
    Dec 29, 2013
    Posts:
    123
    Hello Again! I have a more general question about 'Is Kinematic'. I've read and heard that you are supposed to make your rigid body 'Is Kinematic' whenever you plan to control or move it according to script like 'transform.position...'. And otherwise if you don't plan for the object to move like in ground you shouldn't select it.

    My question is, what if the object itself is not moving with transform.position... BUT it is parented to an object that is moving using transform.position. Would you still make it kinematic because it's the child of a moving object?

    Thank you very much for your time!
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,735
    Yes, use isKinematic. It's not so much "use isKinematic if you set it with transform.position", but rather, "use isKinematic if you're moving it outside the physics engine".
     
  3. GoodNight9

    GoodNight9

    Joined:
    Dec 29, 2013
    Posts:
    123
    Thank you very much!