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

RigidBody Going through Floor

Discussion in 'Getting Started' started by drndfx, Nov 16, 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 looping.
    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: