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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Help me to resolve the mystery.

Discussion in 'Physics' started by gfilkov, May 19, 2022.

  1. gfilkov

    gfilkov

    Joined:
    Jun 25, 2020
    Posts:
    2
    Hi Unity lovers and connoisseurs. Help me to resolve the mystery.
    I have 3D object: prefab Crate (wooden box).
    RigidBody: has mass, UseGravity: true, IsKinematic: false.
    It works as expected: sits on the ground, shakes and turns over when force is applied.
    Now I have added the child: Quad aligned with one of the walls of the box, to use it as the base for other objects (marks and labels). Quad RigidBody: UseGravity: false, IsKinematic: true.
    All right so far.
    Now I add the 1st test object as Quad's child: sphere. No rigid body.
    Here the problem starts: my crate immediately turns over so that the sphere is on the top of the box.
    Why? What happens? What forces are causing this move?
    Googling around did not help. Appreciate your help. Thanks.
     
  2. gfilkov

    gfilkov

    Joined:
    Jun 25, 2020
    Posts:
    2
    PS: using Unity 2021.3.1f1.32 Personal

    Solved it! Just shows my lack of Unity experience.
    Hope this might be helpful to other users:

    Removing (disabling) sphere collider solves the issue!
    It was the sphere collider "pushing" on the box side and turning it over.