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

[Solved]Question on Gameobjects and Rigidbodies

Discussion in 'Scripting' started by Laperen, Feb 8, 2016.

  1. Laperen

    Laperen

    Joined:
    Feb 1, 2016
    Posts:
    1,065
    I've read in several places including here that all moving objects are better off with a Rigidbody component in them.

    Is this true for even child objects of a parent which already has a Rigidbody component? Does a child object need a Rigidbody even if the parent already has a Rigidbody?
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Don't parent rigidbodies! It's a recipie for physics madness.

    Any object with a collider should have an attatched rigidbody. That can be on the object or any of its parents.

    If there are no colliders there is generally no need for a rigidbody.
     
  3. Laperen

    Laperen

    Joined:
    Feb 1, 2016
    Posts:
    1,065
    Yes i was asking under the assumption the objects have colliders. So just to re-iterate. Moving objects with colliders should have Rigidbodies. Child objects however take point from their parent objects and thus do not need a rigidbody.