Search Unity

Rigidbody going through floor

Discussion in 'Physics' started by drndfx, Nov 7, 2019.

  1. drndfx

    drndfx

    Joined:
    Jul 3, 2013
    Posts:
    89
    In the attached image:

    The top box has an animation that goes up and down.
    The bottom rectangle has Rigidbody.

    As soon as the top box touches the bottom rectangle, the rectangle is going through the floor.

    How do I detect an object so the animation goes as far as touching the rectangle?
     

    Attached Files: