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

How to have one object push another?

Discussion in 'Editor & General Support' started by MabelSyrup1, Dec 24, 2019.

  1. MabelSyrup1

    MabelSyrup1

    Joined:
    Mar 19, 2019
    Posts:
    5
    Hi! I'm on Unity 2017.4.28f1. I have a drawer with a flashlight in it. The drawer has a trigger to animate the drawer opening. I want the flashlight inside the drawer to open with the drawer. I tried adding box colliders to both objects (with a physics material with the friction cranked waaay up to 100) and a rigidbody to both objects, but the flashlight just refuses to move!

    the drawer's rigidbody has gravity unchecked and is kinematic checked.

    the flashlight's rigidbody has gravity checked and is kinematic unchecked.

    the rest of the settings on the rigidbody are default.
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    1,905
    Just clarifying, but the drawer's got multiple box colliders for each wall and bottom of the drawer, not just one big box, right?
     
  3. MabelSyrup1

    MabelSyrup1

    Joined:
    Mar 19, 2019
    Posts:
    5
    Yep!